public class RpmFileSet extends TarFileSet
RpmFileSet is a FileSet to support RPM directives that can't be expressed
using ant's built-in FileSet classes.DEFAULT_DIR_MODE, DEFAULT_FILE_MODEdescription, location, project| Modifier | Constructor and Description |
|---|---|
|
RpmFileSet()
Constructor for
RpmFileSet |
protected |
RpmFileSet(FileSet fileset)
Constructor using a fileset arguement.
|
protected |
RpmFileSet(RpmFileSet fileset)
Constructor using a archive fileset argument.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Return a ArchiveFileSet that has the same properties
as this one.
|
boolean |
getAddParents() |
Directive |
getDirective() |
void |
setAddParents(boolean addParents) |
void |
setConfig(boolean config)
Supports RPM's
%config directive, used to flag the specified file as being a configuration file. |
void |
setDoc(boolean doc)
Supports RPM's
%doc directive, which flags the files as being documentation. |
void |
setGhost(boolean ghost)
Supports RPM's
%ghost directive, used to flag the specified file as being a ghost file. |
void |
setNoReplace(boolean noReplace)
Supports RPM's
%config(noreplace) directive. |
configureFileSet, getGid, getGroup, getRef, getRef, getUid, getUserName, hasGroupBeenSet, hasGroupIdBeenSet, hasUserIdBeenSet, hasUserNameBeenSet, newArchiveScanner, setGid, setGroup, setRefid, setUid, setUserNameaddConfigured, 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, toStringadd, 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, setupDirectoryScannercheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisEmpty, streamforEach, spliteratorpublic RpmFileSet()
RpmFileSetprotected RpmFileSet(FileSet fileset)
fileset - the FileSet to useprotected RpmFileSet(RpmFileSet fileset)
fileset - the RpmFileSet to usepublic Directive getDirective()
public void setGhost(boolean ghost)
%ghost directive, 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)
public void setConfig(boolean config)
%config directive, 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)
public void setNoReplace(boolean noReplace)
%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)
noReplace - to setdirectivepublic void setDoc(boolean doc)
%doc directive, 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)
public Object clone()
clone in class TarFileSetpublic boolean getAddParents()
public void setAddParents(boolean addParents)
Copyright © 2021. All Rights Reserved.