Package org.apache.tools.ant.taskdefs
Class Tar.TarFileSet
- All Implemented Interfaces:
- Cloneable,- Iterable<Resource>,- ResourceCollection,- SelectorContainer
- Enclosing class:
- Tar
This is a FileSet with the option to specify permissions
 and other attributes.
- 
Field SummaryFields inherited from class org.apache.tools.ant.types.ArchiveFileSetDEFAULT_DIR_MODE, DEFAULT_FILE_MODEFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a newTarFileSetinstance.TarFileSet(FileSet fileset) Creates a newTarFileSetinstance.
- 
Method SummaryModifier and TypeMethodDescriptionString[]Get a list of files and directories specified in the fileset.intgetMode()booleanvoidA 3 digit octal string, specify the user, group and other modes in the standard Unix fashion; optional, default=0644voidsetPreserveLeadingSlashes(boolean b) Flag to indicates whether leading `/'s should be preserved in the file names.Methods inherited from class org.apache.tools.ant.types.TarFileSetclone, configureFileSet, getGid, getGroup, getRef, getRef, getUid, getUserName, hasGroupBeenSet, hasGroupIdBeenSet, hasUserIdBeenSet, hasUserNameBeenSet, newArchiveScanner, setGid, setGroup, setRefid, setUid, setUserNameMethods inherited from class org.apache.tools.ant.types.ArchiveFileSetaddConfigured, dieOnCircularReference, getDirectoryScanner, getDirMode, getDirMode, getEncoding, getFileMode, getFileMode, getFullpath, getFullpath, getPrefix, getPrefix, getSrc, getSrc, hasDirModeBeenSet, hasFileModeBeenSet, integerSetDirMode, integerSetFileMode, isFilesystemOnly, iterator, setDir, setDirMode, setEncoding, setErrorOnMissingArchive, setFileMode, setFullpath, setPrefix, setSrc, setSrcResource, size, toStringMethods inherited from class org.apache.tools.ant.types.AbstractFileSetadd, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addExecutable, addFilename, addMajority, addModified, addNone, addNot, addOr, addOwnedBy, addPosixGroup, addPosixPermissions, addPresent, addReadable, addSelector, addSize, addSymlink, addType, addWritable, appendExcludes, appendIncludes, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDefaultexcludes, getDir, getDir, getDirectoryScanner, getErrorOnMissingDir, getMaxLevelsOfSymlinks, getSelectors, hasPatterns, hasSelectors, isCaseSensitive, isFollowSymlinks, mergeExcludes, mergeIncludes, mergePatterns, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setErrorOnMissingDir, setExcludes, setExcludesfile, setFile, setFollowSymlinks, setIncludes, setIncludesfile, setMaxLevelsOfSymlinks, setupDirectoryScanner, setupDirectoryScannerMethods inherited from class org.apache.tools.ant.types.DataTypecheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesMethods inherited from class org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface org.apache.tools.ant.types.ResourceCollectionisEmpty, stream
- 
Constructor Details- 
TarFileSetCreates a newTarFileSetinstance. Using a fileset as a constructor argument.- Parameters:
- fileset- a- FileSetvalue
 
- 
TarFileSetpublic TarFileSet()Creates a newTarFileSetinstance.
 
- 
- 
Method Details- 
getFiles
- 
setModeA 3 digit octal string, specify the user, group and other modes in the standard Unix fashion; optional, default=0644- Parameters:
- octalString- a 3 digit octal string.
 
- 
getModepublic int getMode()- Returns:
- the current mode.
 
- 
setPreserveLeadingSlashespublic void setPreserveLeadingSlashes(boolean b) Flag to indicates whether leading `/'s should be preserved in the file names. Optional, default isfalse.- Parameters:
- b- the leading slashes flag.
 
- 
getPreserveLeadingSlashespublic boolean getPreserveLeadingSlashes()- Returns:
- the leading slashes flag.
 
 
-