public class JkCompileLayout<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JkCompileLayout.Concern |
Modifier and Type | Field and Description |
---|---|
T |
__
Parent chaining
|
static java.nio.file.PathMatcher |
JAVA_RESOURCE_MATCHER
Filter to consider as resources everything but java source stuff.
|
Modifier and Type | Method and Description |
---|---|
JkCompileLayout<T> |
addResource(JkPathTree resource) |
JkCompileLayout<T> |
addResource(java.nio.file.Path path) |
JkCompileLayout<T> |
addResource(java.lang.String relativeDir) |
JkCompileLayout<T> |
addSource(JkPathTree source) |
JkCompileLayout<T> |
addSource(JkPathTreeSet source) |
JkCompileLayout<T> |
addSource(java.nio.file.Path dir) |
JkCompileLayout<T> |
addSource(java.lang.String path) |
void |
deleteOutputDirs()
Delete all directories involved in output production (classes, test classes, test reports, generated sources/resources)
but not the outputDir.
|
JkCompileLayout<T> |
emptyResources() |
JkCompileLayout<T> |
emptySources() |
java.nio.file.Path |
getBaseDir() |
java.lang.String |
getClassDir() |
java.nio.file.Path |
getClassDirPath() |
java.lang.String |
getGeneratedResourceDir() |
java.lang.String |
getGeneratedSourceDir() |
java.lang.String |
getInfo() |
java.nio.file.Path |
getOutputDir() |
JkPathTreeSet |
getResources() |
JkPathTreeSet |
getSources() |
JkCompileLayout<T> |
mixResourcesAndSources()
All non .java files located in a source directory will be considered as a resource (copied in classes file)
|
static <T> JkCompileLayout<T> |
of()
Creates a default layout respecting Maven standard for sources.
|
static <T> JkCompileLayout<T> |
ofParent(T parent)
Same as
of() but proving parent chaining |
java.nio.file.Path |
resolveClassDir()
Returns the class dir directory resolved against the current base dir.
|
java.nio.file.Path |
resolveGeneratedResourceDir()
Returns location of generated resources.
|
java.nio.file.Path |
resolveGeneratedSourceDir()
Returns location of generated sources.
|
JkPathTreeSet |
resolveResources() |
JkPathTreeSet |
resolveSources() |
JkCompileLayout<T> |
setBaseDir(java.nio.file.Path path) |
JkCompileLayout<T> |
setBaseDirSupplier(java.util.function.Supplier<java.nio.file.Path> supplier) |
JkCompileLayout<T> |
setClassDir(java.lang.String path) |
JkCompileLayout<T> |
setGeneratedResourceDir(java.lang.String path) |
JkCompileLayout<T> |
setGeneratedSourceDir(java.lang.String path) |
JkCompileLayout<T> |
setOutputDir(java.nio.file.Path path) |
JkCompileLayout<T> |
setOutputDirSupplier(java.util.function.Supplier<java.nio.file.Path> supplier) |
JkCompileLayout<T> |
setResources(JkPathTreeSet resources) |
JkCompileLayout<T> |
setSourceMavenStyle(JkCompileLayout.Concern concern)
Creates a default layout respecting Maven standard for sources.
|
JkCompileLayout<T> |
setSources(java.util.function.Function<JkPathTreeSet,JkPathTreeSet> sourceTransformer) |
JkCompileLayout<T> |
setSources(JkPathTree sources) |
JkCompileLayout<T> |
setSources(JkPathTreeSet sources) |
JkCompileLayout<T> |
setSources(java.lang.String dir) |
JkCompileLayout<T> |
setSourceSimpleStyle(JkCompileLayout.Concern concern)
Sets the simple standard layout on this
JkCompileLayout . |
JkCompileLayout<T> |
setStandardOuputDirs(JkCompileLayout.Concern concern) |
public static final java.nio.file.PathMatcher JAVA_RESOURCE_MATCHER
public final T __
public static <T> JkCompileLayout<T> ofParent(T parent)
of()
but proving parent chainingof()
public static <T> JkCompileLayout<T> of()
This means sources in [baseDir]/src/main/java and resources in [baseDir]/src/main/resources and using "." directory as base dir.
public JkCompileLayout<T> setSourceMavenStyle(JkCompileLayout.Concern concern)
public JkCompileLayout<T> setSourceSimpleStyle(JkCompileLayout.Concern concern)
JkCompileLayout
. This means :
public JkCompileLayout<T> setStandardOuputDirs(JkCompileLayout.Concern concern)
public JkCompileLayout<T> setSources(JkPathTreeSet sources)
public JkCompileLayout<T> setSources(JkPathTree sources)
public JkCompileLayout<T> setSources(java.util.function.Function<JkPathTreeSet,JkPathTreeSet> sourceTransformer)
public JkCompileLayout<T> addSource(JkPathTree source)
public JkCompileLayout<T> addSource(JkPathTreeSet source)
public JkCompileLayout<T> setSources(java.lang.String dir)
public JkCompileLayout<T> addSource(java.nio.file.Path dir)
public JkCompileLayout<T> addSource(java.lang.String path)
public JkCompileLayout<T> emptySources()
public JkCompileLayout<T> setResources(JkPathTreeSet resources)
public JkCompileLayout<T> addResource(JkPathTree resource)
public JkCompileLayout<T> addResource(java.nio.file.Path path)
public JkCompileLayout<T> addResource(java.lang.String relativeDir)
public JkCompileLayout<T> emptyResources()
public JkCompileLayout<T> mixResourcesAndSources()
public JkCompileLayout<T> setBaseDirSupplier(java.util.function.Supplier<java.nio.file.Path> supplier)
public JkCompileLayout<T> setBaseDir(java.nio.file.Path path)
public JkCompileLayout<T> setOutputDirSupplier(java.util.function.Supplier<java.nio.file.Path> supplier)
public JkCompileLayout<T> setOutputDir(java.nio.file.Path path)
public JkCompileLayout<T> setGeneratedSourceDir(java.lang.String path)
public JkCompileLayout<T> setGeneratedResourceDir(java.lang.String path)
public JkCompileLayout<T> setClassDir(java.lang.String path)
public void deleteOutputDirs()
public java.nio.file.Path getBaseDir()
public java.nio.file.Path getOutputDir()
public JkPathTreeSet getSources()
public JkPathTreeSet getResources()
public java.lang.String getGeneratedSourceDir()
public java.lang.String getGeneratedResourceDir()
public java.lang.String getClassDir()
public java.nio.file.Path getClassDirPath()
public java.nio.file.Path resolveClassDir()
public java.nio.file.Path resolveGeneratedSourceDir()
public java.nio.file.Path resolveGeneratedResourceDir()
public JkPathTreeSet resolveSources()
public JkPathTreeSet resolveResources()
public java.lang.String getInfo()