public class JkCompileLayout
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JkCompileLayout.Concern |
static class |
JkCompileLayout.Style |
Modifier and Type | Field and Description |
---|---|
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 |
addResource(JkPathTree resource) |
JkCompileLayout |
addResource(java.nio.file.Path path) |
JkCompileLayout |
addResource(java.lang.String relativeDir) |
JkCompileLayout |
addSourceExclusionPatterns(java.lang.String... patterns) |
JkCompileLayout |
addSources(JkPathTree source) |
JkCompileLayout |
addSources(JkPathTreeSet source) |
JkCompileLayout |
addSources(java.nio.file.Path dir) |
JkCompileLayout |
addSources(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 |
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() |
static JkCompileLayout |
of()
Creates a default layout respecting Maven standard for sources.
|
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 |
setBaseDir(java.nio.file.Path path) |
JkCompileLayout |
setBaseDirSupplier(java.util.function.Supplier<java.nio.file.Path> supplier) |
JkCompileLayout |
setClassDir(java.lang.String path) |
JkCompileLayout |
setEmptyResources() |
JkCompileLayout |
setGeneratedResourceDir(java.lang.String path) |
JkCompileLayout |
setGeneratedSourceDir(java.lang.String path) |
JkCompileLayout |
setMixResourcesAndSources()
All non .java files located in a source directory will be considered as a resource (copied in classes file)
|
JkCompileLayout |
setOutputDir(java.nio.file.Path path) |
JkCompileLayout |
setOutputDirSupplier(java.util.function.Supplier<java.nio.file.Path> supplier) |
JkCompileLayout |
setResources(JkPathTreeSet resources) |
JkCompileLayout |
setSourceMavenStyle(JkCompileLayout.Concern concern)
Creates a default layout respecting Maven standard for sources.
|
JkCompileLayout |
setSources(java.util.function.Function<JkPathTreeSet,JkPathTreeSet> sourceTransformer) |
JkCompileLayout |
setSources(JkPathTree sources) |
JkCompileLayout |
setSources(JkPathTreeSet sources) |
JkCompileLayout |
setSources(java.lang.String... dir) |
JkCompileLayout |
setSourceSimpleStyle(JkCompileLayout.Concern concern)
Sets the simple standard layout on this
JkCompileLayout . |
JkCompileLayout |
setStandardOutputDirs(JkCompileLayout.Concern concern) |
public static final java.nio.file.PathMatcher JAVA_RESOURCE_MATCHER
public static JkCompileLayout of()
This means sources in [baseDir]/src/main/java and resources in [baseDir]/src/main/resources and using "." directory as base dir.
public JkCompileLayout setSourceMavenStyle(JkCompileLayout.Concern concern)
public JkCompileLayout setSourceSimpleStyle(JkCompileLayout.Concern concern)
JkCompileLayout
. This means :
public JkCompileLayout setStandardOutputDirs(JkCompileLayout.Concern concern)
public JkCompileLayout setSources(JkPathTreeSet sources)
public JkCompileLayout setSources(JkPathTree sources)
public JkCompileLayout setSources(java.util.function.Function<JkPathTreeSet,JkPathTreeSet> sourceTransformer)
public JkCompileLayout addSources(JkPathTree source)
public JkCompileLayout addSources(JkPathTreeSet source)
public JkCompileLayout setSources(java.lang.String... dir)
public JkCompileLayout addSources(java.nio.file.Path dir)
public JkCompileLayout addSources(java.lang.String path)
public JkCompileLayout emptySources()
public JkCompileLayout setResources(JkPathTreeSet resources)
public JkCompileLayout addResource(JkPathTree resource)
public JkCompileLayout addResource(java.nio.file.Path path)
public JkCompileLayout addResource(java.lang.String relativeDir)
public JkCompileLayout setEmptyResources()
public JkCompileLayout addSourceExclusionPatterns(java.lang.String... patterns)
public JkCompileLayout setMixResourcesAndSources()
public JkCompileLayout setBaseDirSupplier(java.util.function.Supplier<java.nio.file.Path> supplier)
public JkCompileLayout setBaseDir(java.nio.file.Path path)
public JkCompileLayout setOutputDirSupplier(java.util.function.Supplier<java.nio.file.Path> supplier)
public JkCompileLayout setOutputDir(java.nio.file.Path path)
public JkCompileLayout setGeneratedSourceDir(java.lang.String path)
public JkCompileLayout setGeneratedResourceDir(java.lang.String path)
public JkCompileLayout 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()