org.freecompany.redline.ant
Class RpmFileSet

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.types.DataType
          extended by org.apache.tools.ant.types.AbstractFileSet
              extended by org.apache.tools.ant.types.FileSet
                  extended by org.apache.tools.ant.types.ArchiveFileSet
                      extended by org.apache.tools.ant.types.TarFileSet
                          extended by org.freecompany.redline.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_MODE
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
  RpmFileSet()
          Constructor for RpmFileSet
protected RpmFileSet(org.apache.tools.ant.types.FileSet fileset)
          Constructor using a fileset arguement.
protected RpmFileSet(RpmFileSet fileset)
          Constructor using a archive fileset argument.
 
Method Summary
 Object clone()
          Return a ArchiveFileSet that has the same properties as this one.
 Directive getDirective()
           
 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.
 
Methods inherited from class org.apache.tools.ant.types.TarFileSet
configureFileSet, getGid, getGroup, getRef, getUid, getUserName, hasGroupBeenSet, hasGroupIdBeenSet, hasUserIdBeenSet, hasUserNameBeenSet, newArchiveScanner, setGid, setGroup, setRefid, setUid, setUserName
 
Methods inherited from class org.apache.tools.ant.types.ArchiveFileSet
addConfigured, dieOnCircularReference, getCheckedRef, getDirectoryScanner, getDirMode, getDirMode, getFileMode, getFileMode, getFullpath, getFullpath, getPrefix, getPrefix, getSrc, getSrc, hasDirModeBeenSet, hasFileModeBeenSet, integerSetDirMode, integerSetFileMode, isFilesystemOnly, iterator, setDir, setDirMode, setErrorOnMissingArchive, setFileMode, setFullpath, setPrefix, setSrc, setSrcResource, size, toString
 
Methods inherited from class org.apache.tools.ant.types.AbstractFileSet
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addReadable, addSelector, addSize, 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, setupDirectoryScanner
 
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RpmFileSet

public RpmFileSet()
Constructor for RpmFileSet


RpmFileSet

protected RpmFileSet(org.apache.tools.ant.types.FileSet fileset)
Constructor using a fileset arguement.

Parameters:
fileset - the FileSet to use

RpmFileSet

protected RpmFileSet(RpmFileSet fileset)
Constructor using a archive fileset argument.

Parameters:
fileset - the RpmFileSet to use
Method Detail

getDirective

public Directive getDirective()

setGhost

public void setGhost(boolean ghost)
Supports RPM's %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:

Parameters:
ghost - to set
See Also:
rpm.com, directive

setConfig

public void setConfig(boolean config)
Supports RPM's %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:

Parameters:
config - to set
See Also:
rpm.com, directive

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:

Parameters:
noReplace - to set
See Also:
{@code noreplace} details, directive

setDoc

public void setDoc(boolean doc)
Supports RPM's %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:

Parameters:
doc - to set
See Also:
rpm.com, directive

clone

public Object clone()
Return a ArchiveFileSet that has the same properties as this one.

Overrides:
clone in class org.apache.tools.ant.types.TarFileSet
Returns:
the cloned archiveFileSet


Copyright © 2014. All Rights Reserved.