org.java.plugin.tools.ant
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.
Constructor and Description |
---|
VersionUpdateTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
void |
setAlterReferences(boolean value) |
void |
setTimestampVersion(boolean value) |
void |
setVersionsFile(java.io.File value) |
addFileset, getBlackList, getIncludedFiles, getManifestURL, getPathResolver, getRegistry, getVerbose, getWhiteList, initRegistry, isManifestAccepted, loadList, setBaseDir, setBlackList, setVerbose, setWhiteList
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
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public final void setAlterReferences(boolean value)
value
- true
if version references should be upgradedpublic void setVersionsFile(java.io.File value)
value
- file where to store versioning related infopublic void setTimestampVersion(boolean value)
value
- if true
, the plug-in timestamp will be included
into version name
attributepublic void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Task.execute()
Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.