Klasse ModuleDetector

java.lang.Object
edu.hm.hafner.analysis.ModuleDetector

public class ModuleDetector extends Object
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)
  • Konstruktordetails

    • ModuleDetector

      public ModuleDetector(Path workspace, ModuleDetector.FileSystem fileSystem)
      Creates a new instance of ModuleDetector.
      Parameter:
      workspace - the workspace to scan for Maven pom.xml or ant build.xml files
      fileSystem - file system facade to find and load files with
  • Methodendetails

    • guessModuleName

      public String guessModuleName(String originalFileName)
      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