Class DefaultFileSet
java.lang.Object
org.codehaus.plexus.archiver.util.AbstractFileSet<DefaultFileSet>
org.codehaus.plexus.archiver.util.DefaultFileSet
- All Implemented Interfaces:
BaseFileSet, FileSet
Default implementation of
FileSet.- Since:
- 1.0-alpha-9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultFileSetfollowingSymLinks(boolean followingSymLinks) Returns the file sets base directory.booleanReturns whether symbolic links below the base directory are followed.voidsetDirectory(File directory) Sets the file sets base directory.voidsetFollowingSymLinks(boolean followingSymLinks) Sets whether symbolic links below the base directory are followed.Methods inherited from class AbstractFileSet
exclude, getExcludes, getFileMappers, getFileSelectors, getIncludes, getPrefix, getStreamTransformer, include, includeEmptyDirs, includeExclude, isCaseSensitive, isIncludingEmptyDirectories, isUsingDefaultExcludes, prefixed, setCaseSensitive, setExcludes, setFileMappers, setFileSelectors, setIncludes, setIncludingEmptyDirectories, setPrefix, setStreamTransformer, setUsingDefaultExcludes, usingDefaultExcludesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseFileSet
getExcludes, getFileMappers, getFileSelectors, getIncludes, getPrefix, getStreamTransformer, isCaseSensitive, isIncludingEmptyDirectories, isUsingDefaultExcludes
-
Constructor Details
-
DefaultFileSet
-
DefaultFileSet
public DefaultFileSet()
-
-
Method Details
-
setDirectory
-
getDirectory
Description copied from interface:FileSetReturns the file sets base directory.- Specified by:
getDirectoryin interfaceFileSet
-
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:FileSetReturns 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. Whentrue, 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:
isFollowingSymLinksin interfaceFileSet
-
followingSymLinks
- Since:
- 4.14.0
-
fileSet
-