Class MavenResource
java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenResource
A resource of a
MavenBuild
.- Author:
- Stephane Nicoll
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the directory where resources are to be found.Return files patterns which specify the files to ignore as resources under that specified directory.Return files patterns which specify the files to include as resources under that specified directory.Return the directory structure to place the set of resources from a build.boolean
Return whether filtering is enabled when copying resources.
-
Constructor Details
-
MavenResource
-
-
Method Details
-
getDirectory
Return the directory where resources are to be found. Can use regular maven token such as${basedir}/src/main
.- Returns:
- the resources directory
-
getTargetPath
Return the directory structure to place the set of resources from a build. Returnnull
by default which represents the root directory.- Returns:
- the target path or
null
-
isFiltering
public boolean isFiltering()Return whether filtering is enabled when copying resources.- Returns:
true
if filtering is enabled
-
getIncludes
Return files patterns which specify the files to include as resources under that specified directory. Can use*
for all.- Returns:
- the include patterns
-
getExcludes
Return files patterns which specify the files to ignore as resources under that specified directory. In conflicts betweeninclude
andexclude
,exclude
wins.- Returns:
- the exclude patterns
-