Package org.java.plugin.tools.ant
Class SortTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
org.java.plugin.tools.ant.BaseJpfTask
org.java.plugin.tools.ant.SortTask
- All Implemented Interfaces:
Cloneable,org.apache.tools.ant.types.selectors.SelectorContainer
The Ant task to sort plug-ins and plug-in fragments in correct build order.
- Version:
- $Id: SortTask.java,v 1.2 2007/05/13 16:10:12 ddimon Exp $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPut plug-in'sbuild.xmlfile into output path.static final StringPut plug-in directory into output path.static final StringPut original plug-in manifest file into output path.Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
filesetFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected FilegetResultFile(URL manifestUrl) protected voidreorder(List<PluginDescriptor> descriptors) voidvoidsetPathIdRef(String value) voidsetPathMode(String value) voidsetReverse(boolean value) Methods inherited from class org.java.plugin.tools.ant.BaseJpfTask
addFileset, getBlackList, getIncludedFiles, getManifestURL, getPathResolver, getRegistry, getVerbose, getWhiteList, initRegistry, isManifestAccepted, loadList, setBaseDir, setBlackList, setVerbose, setWhiteListMethods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItemsMethods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
-
Field Details
-
MODE_DIR
Put plug-in directory into output path.- See Also:
-
MODE_BUILD
Put plug-in'sbuild.xmlfile into output path.- See Also:
-
MODE_MANIFEST
Put original plug-in manifest file into output path.- See Also:
-
-
Constructor Details
-
SortTask
public SortTask()
-
-
Method Details
-
setPathId
- Parameters:
value- the path ID to set
-
setPathIdRef
- Parameters:
value- the path ID reference to set
-
setPathMode
- Parameters:
value- the output path mode to set (DIR, BUILD, MANIFEST)
-
setReverse
public void setReverse(boolean value) - Parameters:
value- sets the reverse sort order
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException- See Also:
-
Task.execute()
-
getResultFile
- Parameters:
manifestUrl- plug-in or plug-in fragment manifest URL- Returns:
- file to be included in result path
-
reorder
-