Class Fileset
java.lang.Object
org.apache.maven.plugins.clean.Fileset
Customizes the string representation of
org.apache.maven.api.model.FileSet to return the
included and excluded files from the file-set's directory. Specifically,
"file-set: [directory] (included: [included files],
excluded: [excluded files])"- Since:
- 2.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether to follow symbolic links.Returns the base directory.Returns the patterns of the file to exclude, or an empty list if unspecified.Returns the patterns of the file to include, or an empty list if unspecified.booleanReturns whether the base directory is excluded from the fileset.toString()Returns a string representation of the included and excluded files from this file-set's directory.booleanReturns whether to use a default set of excludes.
-
Constructor Details
-
Fileset
public Fileset()Creates an initially empty file set.
-
-
Method Details
-
getDirectory
-
getIncludes
-
getExcludes
-
isBaseDirectoryExcluded
public boolean isBaseDirectoryExcluded()Returns whether the base directory is excluded from the fileset.. This isfalseby default. The base directory can be excluded explicitly if the exclude patterns contains an empty string.- Returns:
- whether the base directory is excluded from the fileset
-
followSymlinks
public boolean followSymlinks()Returns whether to follow symbolic links..- Returns:
- whether to follow symbolic links
-
useDefaultExcludes
public boolean useDefaultExcludes()Returns whether to use a default set of excludes..- Returns:
- whether to use a default set of excludes
-
toString
Returns a string representation of the included and excluded files from this file-set's directory.. Specifically,"file-set: [directory] (included: [included files], excluded: [excluded files])"
-