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 aMavenResource
with 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 ornull
to use the root directory.
-
Constructor Details
-
Builder
Creates a new instance.- Parameters:
directory
- the directory
-
-
Method Details
-
targetPath
Set the directory structure to place the set of resources from a build ornull
to 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
-true
to enable resource filtering- Returns:
- this for method chaining
-
includes
Set the files patterns to use to include files. In conflicts betweeninclude
andexclude
,exclude
wins.- Parameters:
includes
- the include patterns- Returns:
- this for method chaining
-
excludes
Set the files patterns to use to exclude files. In conflicts betweeninclude
andexclude
,exclude
wins.- Parameters:
excludes
- the exclude patterns- Returns:
- this for method chaining
-
build
Build aMavenResource
with the current state of this builder.- Returns:
- a
MavenResource
-