Package org.drools.codegen.common
Class AppPaths
- java.lang.Object
-
- org.drools.codegen.common.AppPaths
-
public class AppPaths extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAppPaths.BuildTool
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTARGET_DIR
-
Constructor Summary
Constructors Modifier Constructor Description protectedAppPaths(java.util.Set<java.nio.file.Path> projectPaths, java.util.Collection<java.nio.file.Path> classesPaths, boolean isJar, AppPaths.BuildTool bt, java.lang.String resourcesBasePath, java.nio.file.Path outputTarget)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AppPathsfromProjectDir(java.nio.file.Path projectDir, java.nio.file.Path outputTarget)static AppPathsfromTestDir(java.nio.file.Path projectDir)Builder to be used only for tests, where all resources must be present in "src/test/resources" directoryjava.util.Collection<java.nio.file.Path>getClassesPaths()java.nio.file.PathgetFirstProjectPath()java.nio.file.PathgetOutputTarget()java.nio.file.Path[]getPaths()java.io.File[]getResourceFiles()java.nio.file.Path[]getResourcePaths()java.nio.file.Path[]getSourcePaths()java.lang.StringtoString()
-
-
-
Field Detail
-
TARGET_DIR
public static final java.lang.String TARGET_DIR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AppPaths
protected AppPaths(java.util.Set<java.nio.file.Path> projectPaths, java.util.Collection<java.nio.file.Path> classesPaths, boolean isJar, AppPaths.BuildTool bt, java.lang.String resourcesBasePath, java.nio.file.Path outputTarget)- Parameters:
projectPaths-classesPaths-isJar-bt-resourcesBasePath- "main" or "test"
-
-
Method Detail
-
fromProjectDir
public static AppPaths fromProjectDir(java.nio.file.Path projectDir, java.nio.file.Path outputTarget)
-
fromTestDir
public static AppPaths fromTestDir(java.nio.file.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 java.nio.file.Path[] getPaths()
-
getFirstProjectPath
public java.nio.file.Path getFirstProjectPath()
-
getResourceFiles
public java.io.File[] getResourceFiles()
-
getResourcePaths
public java.nio.file.Path[] getResourcePaths()
-
getSourcePaths
public java.nio.file.Path[] getSourcePaths()
-
getClassesPaths
public java.util.Collection<java.nio.file.Path> getClassesPaths()
-
getOutputTarget
public java.nio.file.Path getOutputTarget()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-