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 String
Put plug-in'sbuild.xml
file into output path.static final String
Put plug-in directory into output path.static final String
Put original plug-in manifest file into output path.Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
protected File
getResultFile
(URL manifestUrl) protected void
reorder
(List<PluginDescriptor> descriptors) void
void
setPathIdRef
(String value) void
setPathMode
(String value) void
setReverse
(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, setWhiteList
Methods 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, XsetItems
Methods 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, setTaskType
Methods 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.xml
file 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:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
- See Also:
-
getResultFile
- Parameters:
manifestUrl
- plug-in or plug-in fragment manifest URL- Returns:
- file to be included in result path
-
reorder
-