Class Fileset

java.lang.Object
org.apache.maven.plugins.clean.Fileset

public class Fileset extends Object
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 Details

    • Fileset

      public Fileset()
      Creates an initially empty file set.
  • Method Details

    • getDirectory

      public Path getDirectory()
      Returns the base directory..
      Returns:
      the base directory
    • getIncludes

      public List<String> getIncludes()
      Returns the patterns of the file to include, or an empty list if unspecified..
      Returns:
      the patterns of the file to include, or an empty list if unspecified
    • getExcludes

      public List<String> getExcludes()
      Returns the patterns of the file to exclude, or an empty list if unspecified..
      Returns:
      the patterns of the file to exclude, or an empty list if unspecified
    • isBaseDirectoryExcluded

      public boolean isBaseDirectoryExcluded()
      Returns whether the base directory is excluded from the fileset.. This is false by 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

      public String 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])"
      Overrides:
      toString in class Object
      Returns:
      a string representation of the included and excluded files from this file-set's directory