Package org.xbib.rpm.ant
Class RpmFileSet
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.AbstractFileSet
org.apache.tools.ant.types.FileSet
org.apache.tools.ant.types.ArchiveFileSet
org.apache.tools.ant.types.TarFileSet
org.xbib.rpm.ant.RpmFileSet
- All Implemented Interfaces:
Cloneable,Iterable<org.apache.tools.ant.types.Resource>,org.apache.tools.ant.types.ResourceCollection,org.apache.tools.ant.types.selectors.SelectorContainer
public class RpmFileSet
extends org.apache.tools.ant.types.TarFileSet
A
RpmFileSet is a FileSet to support RPM directives that can't be expressed
using ant's built-in FileSet classes.-
Field Summary
Fields inherited from class org.apache.tools.ant.types.ArchiveFileSet
DEFAULT_DIR_MODE, DEFAULT_FILE_MODEFields inherited from class org.apache.tools.ant.types.DataType
checked, refFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructor forRpmFileSet.protectedRpmFileSet(org.apache.tools.ant.types.FileSet fileset) Constructor using a fileset arguement.protectedRpmFileSet(RpmFileSet fileset) Constructor using a archive fileset argument. -
Method Summary
Modifier and TypeMethodDescriptionclone()Return a ArchiveFileSet that has the same properties as this one.EnumSet<org.xbib.rpm.payload.Directive>voidsetConfig(boolean config) Supports RPM's%configdirective, used to flag the specified file as being a configuration file.voidsetDoc(boolean doc) Supports RPM's%docdirective, which flags the files as being documentation.voidsetGhost(boolean ghost) Supports%ghostdirective, used to flag the specified file as being a ghost file.voidsetNoReplace(boolean noReplace) Supports RPM's%config(noreplace)directive.Methods inherited from class org.apache.tools.ant.types.TarFileSet
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.ArchiveFileSet
addConfigured, 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.AbstractFileSet
add, 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.DataType
checkAttributesAllowed, 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.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.tools.ant.types.ResourceCollection
isEmpty, stream
-
Constructor Details
-
RpmFileSet
public RpmFileSet()Constructor forRpmFileSet. -
RpmFileSet
protected RpmFileSet(org.apache.tools.ant.types.FileSet fileset) Constructor using a fileset arguement.- Parameters:
fileset- theFileSetto use
-
RpmFileSet
Constructor using a archive fileset argument.- Parameters:
fileset- theRpmFileSetto use
-
-
Method Details
-
getDirectives
-
setGhost
public void setGhost(boolean ghost) Supports%ghostdirective, used to flag the specified file as being a ghost file. By adding this directive to the line containing a file, RPM will know about the ghosted file, but will not add it to the package. Permitted values for this directive are:-
true(equivalent to specifying%ghost -
false(equivalent to omitting%ghost)
- Parameters:
ghost- the ghost
-
-
setConfig
public void setConfig(boolean config) Supports RPM's%configdirective, used to flag the specified file as being a configuration file. RPM performs additional processing for config files when packages are erased, and during installations and upgrades. Permitted values for this directive are:-
true(equivalent to specifying%config -
false(equivalent to omitting%config)
- Parameters:
config- the config
-
-
setNoReplace
public void setNoReplace(boolean noReplace) Supports RPM's%config(noreplace)directive. This directive modifies how RPM manages edited config files. Permitted values for this directive are:-
true(equivalent to specifying%noreplace -
false(equivalent to omitting%noreplace)
- Parameters:
noReplace- the noreplace
-
-
setDoc
public void setDoc(boolean doc) Supports RPM's%docdirective, which flags the files as being documentation. RPM keeps track of documentation files in its database, so that a user can easily find information about an installed package. Permitted values for this directive are:-
true(equivalent to specifying%doc -
false(equivalent to omitting%doc)
- Parameters:
doc- the doc
-
-
clone
Return a ArchiveFileSet that has the same properties as this one.- Overrides:
clonein classorg.apache.tools.ant.types.TarFileSet- Returns:
- the cloned archiveFileSet
-