JPF 1.5.1

org.java.plugin.tools.ant
Class SortTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.java.plugin.tools.ant.BaseJpfTask
                  extended by org.java.plugin.tools.ant.SortTask
All Implemented Interfaces:
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
static java.lang.String MODE_BUILD
          Put plug-in's build.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.
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
SortTask()
           
 
Method Summary
 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
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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's build.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
Constructor Detail

SortTask

public SortTask()
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 class org.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)

JPF 1.5.1

Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.