Package org.apache.maven.api.model
Class FileSet
java.lang.Object
org.apache.maven.api.model.PatternSet
org.apache.maven.api.model.FileSet
- All Implemented Interfaces:
Serializable,InputLocationTracker
- Direct Known Subclasses:
Resource
@Experimental
@Generated
@ThreadSafe
@Immutable
public class FileSet
extends PatternSet
implements Serializable, InputLocationTracker
A PatternSet for files.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create FileSet instances. -
Method Summary
Modifier and TypeMethodDescriptionDescribe the directory where the resources are stored.static FileSet.BuilderCreates a newFileSetbuilder instance.static FileSet.BuildernewBuilder(boolean withDefaults) Creates a newFileSetbuilder instance using default values or not.static FileSet.BuildernewBuilder(FileSet from) Creates a newFileSetbuilder instance using the specified object as a basis.static FileSet.BuildernewBuilder(FileSet from, boolean forceCopy) Creates a newFileSetbuilder instance using the specified object as a basis.static FileSetCreates a newFileSetinstance.static FileSetnewInstance(boolean withDefaults) Creates a newFileSetinstance using default values or not.toString()with()Creates a new builder with this object as the basis.withDirectory(String directory) Creates a newFileSetinstance using the specified directory.withExcludes(Collection<String> excludes) Creates a newFileSetinstance using the specified excludes.withIncludes(Collection<String> includes) Creates a newFileSetinstance using the specified includes.Methods inherited from class org.apache.maven.api.model.PatternSet
getExcludes, getIncludes, getLocation, newBuilder, newBuilderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.api.model.InputLocationTracker
getLocation
-
Method Details
-
getDirectory
Describe the directory where the resources are stored. The path is relative to the POM.- Returns:
- a
String
-
with
Creates a new builder with this object as the basis.- Overrides:
within classPatternSet- Returns:
- a
Builder
-
withIncludes
Creates a newFileSetinstance using the specified includes.- Overrides:
withIncludesin classPatternSet- Parameters:
includes- the newCollection<String>to use- Returns:
- a
FileSetwith the specified includes
-
withExcludes
Creates a newFileSetinstance using the specified excludes.- Overrides:
withExcludesin classPatternSet- Parameters:
excludes- the newCollection<String>to use- Returns:
- a
FileSetwith the specified excludes
-
withDirectory
Creates a newFileSetinstance using the specified directory.- Parameters:
directory- the newStringto use- Returns:
- a
FileSetwith the specified directory
-
newInstance
Creates a newFileSetinstance. Equivalent tonewInstance(true).- Returns:
- a new
FileSet - See Also:
-
newInstance
Creates a newFileSetinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
FileSet
-
newBuilder
Creates a newFileSetbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newFileSetbuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newFileSetbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- theFileSetinstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newFileSetbuilder instance using the specified object as a basis.- Parameters:
from- theFileSetinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
toString
- Overrides:
toStringin classPatternSet- See Also:
-