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

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 final String
    Put plug-in's build.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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected File
    getResultFile(URL manifestUrl)
     
    protected void
     
    void
     
    void
     
    void
     
    void
    setReverse(boolean value)
     

    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SortTask

      public SortTask()
  • Method Details

    • setPathId

      public void setPathId(String value)
      Parameters:
      value - the path ID to set
    • setPathIdRef

      public void setPathIdRef(String value)
      Parameters:
      value - the path ID reference to set
    • setPathMode

      public void setPathMode(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 class org.apache.tools.ant.Task
      Throws:
      org.apache.tools.ant.BuildException
      See Also:
      • Task.execute()
    • getResultFile

      protected File getResultFile(URL manifestUrl)
      Parameters:
      manifestUrl - plug-in or plug-in fragment manifest URL
      Returns:
      file to be included in result path
    • reorder

      protected void reorder(List<PluginDescriptor> descriptors)