|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.util.ModuleDetector
public class ModuleDetector
Detects module names by parsing the name of a source file, the Maven pom.xml file or the ANT build.xml file.
| Constructor Summary | |
|---|---|
protected |
ModuleDetector()
Creates a new instance of ModuleDetector. |
|
ModuleDetector(File workspace)
Creates a new instance of ModuleDetector. |
| Method Summary | |
|---|---|
String |
guessModuleName(String originalFileName)
Uses the path prefixes of pom.xml or build.xml files to guess a module name for the specified file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ModuleDetector()
ModuleDetector.
public ModuleDetector(File workspace)
ModuleDetector.
workspace - the workspace to scan for Maven pom.xml or Ant build.xml files| Method Detail |
|---|
public String guessModuleName(String originalFileName)
originalFileName - file name to guess a module for, must be an absolute path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||