public class ModuleDetector extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ModuleDetector.FileSystem
Facade for file system operations.
|
| Constructor and Description |
|---|
ModuleDetector(Path workspace,
ModuleDetector.FileSystem fileSystem)
Creates a new instance of
ModuleDetector. |
| Modifier and Type | Method and Description |
|---|---|
String |
guessModuleName(String originalFileName)
Uses the path prefixes of pom.xml or build.xml files to guess a module name for the specified file.
|
public ModuleDetector(Path workspace, ModuleDetector.FileSystem fileSystem)
ModuleDetector.workspace - the workspace to scan for Maven pom.xml or ant build.xml filesfileSystem - file system facade to find and load files withpublic String guessModuleName(String originalFileName)
originalFileName - file name to guess a module for, must be an absolute pathCopyright © 2018. All rights reserved.