java.lang.Object
edu.hm.hafner.analysis.ModuleDetector
Detects module names by parsing the name of a source file, the Maven pom.xml file or the ANT build.xml file.
- Autor:
- Ullrich Hafner, Christoph Laeubrich (support for OSGi-Bundles)
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interfaceFacade for file system operations. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungModuleDetector(Path workspace, ModuleDetector.FileSystem fileSystem) Creates a new instance ofModuleDetector. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungguessModuleName(String originalFileName) Uses the path prefixes of pom.xml or build.xml files to guess a module name for the specified file.
-
Konstruktordetails
-
ModuleDetector
Creates a new instance ofModuleDetector.- Parameter:
workspace- the workspace to scan for Maven pom.xml or ant build.xml filesfileSystem- file system facade to find and load files with
-
-
Methodendetails
-
guessModuleName
Uses the path prefixes of pom.xml or build.xml files to guess a module name for the specified file.- Parameter:
originalFileName- file name to guess a module for, must be an absolute path- Gibt zurück:
- a module name or an empty string
-