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:
java.lang.Cloneable
,org.apache.tools.ant.types.selectors.SelectorContainer
public class SortTask extends BaseJpfTask
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
Fields Modifier and Type Field Description static java.lang.String
MODE_BUILD
Put plug-in'sbuild.xml
file into output path.static java.lang.String
MODE_DIR
Put plug-in directory into output path.static java.lang.String
MODE_MANIFEST
Put original plug-in manifest file into output path.
-
Constructor Summary
Constructors Constructor Description SortTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
protected java.io.File
getResultFile(java.net.URL manifestUrl)
protected void
reorder(java.util.List<PluginDescriptor> descriptors)
void
setPathId(java.lang.String value)
void
setPathIdRef(java.lang.String value)
void
setPathMode(java.lang.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
-
-
-
-
Field Detail
-
MODE_DIR
public static final java.lang.String MODE_DIR
Put plug-in directory into output path.- See Also:
- Constant Field Values
-
MODE_BUILD
public static final java.lang.String MODE_BUILD
Put plug-in'sbuild.xml
file into output path.- See Also:
- Constant Field Values
-
MODE_MANIFEST
public static final java.lang.String MODE_MANIFEST
Put original plug-in manifest file into output path.- See Also:
- Constant Field Values
-
-
Method Detail
-
setPathId
public void setPathId(java.lang.String value)
- Parameters:
value
- the path ID to set
-
setPathIdRef
public void setPathIdRef(java.lang.String value)
- Parameters:
value
- the path ID reference to set
-
setPathMode
public void setPathMode(java.lang.String value)
- 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:
Task.execute()
-
getResultFile
protected java.io.File getResultFile(java.net.URL manifestUrl)
- Parameters:
manifestUrl
- plug-in or plug-in fragment manifest URL- Returns:
- file to be included in result path
-
reorder
protected void reorder(java.util.List<PluginDescriptor> descriptors)
-
-