Class MavenResource
java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenResource
A resource of a
MavenBuild.- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
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.booleanReturn 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. Returnnullby 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:
trueif 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 betweenincludeandexclude,excludewins.- Returns:
- the exclude patterns
-