Class DefaultFileSet

java.lang.Object
org.codehaus.plexus.archiver.util.AbstractFileSet<DefaultFileSet>
org.codehaus.plexus.archiver.util.DefaultFileSet
All Implemented Interfaces:
BaseFileSet, FileSet

public class DefaultFileSet extends AbstractFileSet<DefaultFileSet> implements FileSet
Default implementation of FileSet.
Since:
1.0-alpha-9
  • Constructor Details

    • DefaultFileSet

      public DefaultFileSet(File directory)
    • DefaultFileSet

      public DefaultFileSet()
  • Method Details

    • setDirectory

      public void setDirectory(@Nonnull File directory)
      Sets the file sets base directory.
    • getDirectory

      @Nonnull public File getDirectory()
      Description copied from interface: FileSet
      Returns the file sets base directory.
      Specified by:
      getDirectory in interface FileSet
    • setFollowingSymLinks

      public void setFollowingSymLinks(boolean followingSymLinks)
      Sets whether symbolic links below the base directory are followed. Defaults to false.
      Since:
      4.14.0
    • isFollowingSymLinks

      public boolean isFollowingSymLinks()
      Description copied from interface: FileSet
      Returns whether symbolic links below the base directory are followed.

      When false (the default), a symbolic link is added to the archive as a link and the contents of a linked directory are not scanned. When true, links are resolved: a linked directory is added as a directory and its target's contents are included.

      Following links means the scan can descend into a directory that links back to one of its own ancestors, so only enable it for trees known not to contain such cycles.

      Specified by:
      isFollowingSymLinks in interface FileSet
    • followingSymLinks

      public DefaultFileSet followingSymLinks(boolean followingSymLinks)
      Since:
      4.14.0
    • fileSet

      public static DefaultFileSet fileSet(File directory)