Class MavenResource.Builder
java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenResource.Builder
- Enclosing class:
- MavenResource
Builder for a resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build aMavenResourcewith the current state of this builder.Set the files patterns to use to exclude files.Specify if filtering is enabled when copying resources.Set the files patterns to use to include files.targetPath(String targetPath) Set the directory structure to place the set of resources from a build ornullto use the root directory.
-
Constructor Details
-
Builder
-
-
Method Details
-
targetPath
Set the directory structure to place the set of resources from a build ornullto use the root directory.- Parameters:
targetPath- the target path- Returns:
- this for method chaining
-
filtering
Specify if filtering is enabled when copying resources.- Parameters:
filtering-trueto enable resource filtering- Returns:
- this for method chaining
-
includes
Set the files patterns to use to include files. In conflicts betweenincludeandexclude,excludewins.- Parameters:
includes- the include patterns- Returns:
- this for method chaining
-
excludes
Set the files patterns to use to exclude files. In conflicts betweenincludeandexclude,excludewins.- Parameters:
excludes- the exclude patterns- Returns:
- this for method chaining
-
build
Build aMavenResourcewith the current state of this builder.- Returns:
- a
MavenResource
-