Class AppPaths

java.lang.Object
org.drools.codegen.common.AppPaths

public class AppPaths extends Object
  • Field Details

  • Constructor Details

    • AppPaths

      protected AppPaths(List<Path> projectPaths, Collection<Path> classesPaths, boolean isJar, AppPaths.BuildTool bt, String resourcesBasePath, boolean isTest)
      Parameters:
      projectPaths -
      classesPaths -
      isJar -
      bt -
      resourcesBasePath - "main" or "test"
  • Method Details

    • fromProjectDir

      public static AppPaths fromProjectDir(Path projectDir)
    • fromTestDir

      public static AppPaths fromTestDir(Path projectDir)
      Builder to be used only for tests, where all resources must be present in "src/test/resources" directory
      Parameters:
      projectDir -
      Returns:
    • getPaths

      public Path[] getPaths()
    • getFirstProjectPath

      public Path getFirstProjectPath()
    • getResourceFiles

      public File[] getResourceFiles()
    • getResourcePaths

      public Path[] getResourcePaths()
    • getSourcePaths

      public Path[] getSourcePaths()
    • getClassesPaths

      public Collection<Path> getClassesPaths()
    • getOutputTarget

      public Path getOutputTarget()
    • toString

      public String toString()
      Overrides:
      toString in class Object