public class JkProjectSourceLayout
extends java.lang.Object
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 |
---|---|
boolean |
equals(java.lang.Object o) |
java.nio.file.Path |
getBaseDir() |
JkPathTree |
getBaseTree()
Returns base directory as a
JkPathTree . |
java.lang.String |
getInfo() |
JkPathTreeSet |
getResources()
Returns location of production resources.
|
JkPathTreeSet |
getSources()
Returns location of production source code (containing only edited sources, not generated sources).
|
JkPathTreeSet |
getTestResources()
Returns location of test resources.
|
JkPathTreeSet |
getTests()
Returns location of test source code (containing edited + generated
sources).
|
int |
hashCode() |
static JkProjectSourceLayout |
ofMavenStyle()
Creates a Java project source structure according Maven conventions.
|
static JkProjectSourceLayout |
ofSimpleStyle()
Creates a simple Java project structure.
|
JkProjectSourceLayout |
withBaseDir(java.nio.file.Path newBaseDir)
Re-localise all locations defined under the base directory to the specified new of directory keeping the same relative path.
|
JkProjectSourceLayout |
withResources(JkPathTreeSet resources) |
JkProjectSourceLayout |
withResources(java.lang.String... relativePath) |
JkProjectSourceLayout |
withSources(JkPathTreeSet sources) |
JkProjectSourceLayout |
withSources(java.lang.String... relativePath) |
JkProjectSourceLayout |
withTestResources(JkPathTreeSet testResources) |
JkProjectSourceLayout |
withTestResources(java.lang.String... relativePath) |
JkProjectSourceLayout |
withTests(JkPathTreeSet tests) |
JkProjectSourceLayout |
withTests(java.lang.String... relativePath) |
public static final java.nio.file.PathMatcher JAVA_RESOURCE_MATCHER
public static JkProjectSourceLayout ofMavenStyle()
public static JkProjectSourceLayout ofSimpleStyle()
public JkProjectSourceLayout withBaseDir(java.nio.file.Path newBaseDir)
public JkProjectSourceLayout withSources(JkPathTreeSet sources)
public JkProjectSourceLayout withSources(java.lang.String... relativePath)
public JkProjectSourceLayout withResources(JkPathTreeSet resources)
public JkProjectSourceLayout withResources(java.lang.String... relativePath)
public JkProjectSourceLayout withTests(JkPathTreeSet tests)
public JkProjectSourceLayout withTests(java.lang.String... relativePath)
public JkProjectSourceLayout withTestResources(JkPathTreeSet testResources)
public JkProjectSourceLayout withTestResources(java.lang.String... relativePath)
public final JkPathTreeSet getSources()
public final JkPathTreeSet getResources()
public final JkPathTreeSet getTests()
public final JkPathTreeSet getTestResources()
public java.nio.file.Path getBaseDir()
public JkPathTree getBaseTree()
JkPathTree
.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String getInfo()
public int hashCode()
hashCode
in class java.lang.Object