JPF 1.5.1

org.java.plugin.tools.ant
Class VersionUpdateTask

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.VersionUpdateTask
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

public class VersionUpdateTask
extends BaseJpfTask

This class can upgrade all version and plugin-version tags in all plugin manifest files, to the latest version specified in a text file (in Java properties format). This class also handles updating the build number in the specified file.

This class will only upgrade 'version' and 'plugin-version' tags that already exist in the manifest files, so it won't add any to the manifest files.

This class tracks plug-in modification timestamp's and keep them together with versions info in the given text file. The actual plug-in version will be upgraded only if plug-in timestamp changes.

Author:
Jonathan Giles, Dmitry Olshansky

Field Summary
 
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
VersionUpdateTask()
           
 
Method Summary
 void execute()
           
 void setAlterReferences(boolean value)
           
 void setTimestampVersion(boolean value)
           
 void setVersionsFile(java.io.File 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
 

Constructor Detail

VersionUpdateTask

public VersionUpdateTask()
Method Detail

setAlterReferences

public final void setAlterReferences(boolean value)
Parameters:
value - true if version references should be upgraded

setVersionsFile

public void setVersionsFile(java.io.File value)
Parameters:
value - file where to store versioning related info

setTimestampVersion

public void setTimestampVersion(boolean value)
Parameters:
value - if true, the plug-in timestamp will be included into version name attribute

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()

JPF 1.5.1

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