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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create FileSet instances.
- 
Method SummaryModifier 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.PatternSetgetExcludes, getIncludes, getLocation, newBuilder, newBuilderMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.api.model.InputLocationTrackergetLocation
- 
Method Details- 
getDirectoryDescribe the directory where the resources are stored. The path is relative to the POM.- Returns:
- a String
 
- 
withCreates a new builder with this object as the basis.- Overrides:
- within class- PatternSet
- Returns:
- a Builder
 
- 
withIncludesCreates a newFileSetinstance using the specified includes.- Overrides:
- withIncludesin class- PatternSet
- Parameters:
- includes- the new- Collection<String>to use
- Returns:
- a FileSetwith the specified includes
 
- 
withExcludesCreates a newFileSetinstance using the specified excludes.- Overrides:
- withExcludesin class- PatternSet
- Parameters:
- excludes- the new- Collection<String>to use
- Returns:
- a FileSetwith the specified excludes
 
- 
withDirectoryCreates a newFileSetinstance using the specified directory.- Parameters:
- directory- the new- Stringto use
- Returns:
- a FileSetwith the specified directory
 
- 
newInstanceCreates a newFileSetinstance. Equivalent tonewInstance( true ).- Returns:
- a new FileSet
- See Also:
 
- 
newInstanceCreates 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
 
- 
newBuilderCreates a newFileSetbuilder instance. Equivalent tonewBuilder( true ).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newFileSetbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newFileSetbuilder instance using the specified object as a basis. Equivalent tonewBuilder( from, false ).- Parameters:
- from- the- FileSetinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newFileSetbuilder instance using the specified object as a basis.- Parameters:
- from- the- FileSetinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
- 
toString- Overrides:
- toStringin class- PatternSet
- See Also:
 
 
-