cern.jjar.runner
Class VersionUpdateRunner
java.lang.Object
cern.jjar.runner.VersionUpdateRunner
- All Implemented Interfaces:
- JJarRunner
public class VersionUpdateRunner
- extends Object
Allow to increase or to set the version number in the descriptor file.
Uses increase to increase the version number (selecting MAJOR, MINOR, TINY or MODIFIER).
Uses version to set the version to a given value.
- Author:
- Lionel Mestre
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAJOR
public static final String MAJOR
- See Also:
- Constant Field Values
MINOR
public static final String MINOR
- See Also:
- Constant Field Values
TINY
public static final String TINY
- See Also:
- Constant Field Values
MODIFIER
public static final String MODIFIER
- See Also:
- Constant Field Values
LOG_LINE_LENGTH
protected static final int LOG_LINE_LENGTH
- See Also:
- Constant Field Values
defaultdependencyversion
protected String defaultdependencyversion
repositoryXMLStore
public RepositoryXMLStore repositoryXMLStore
VersionUpdateRunner
public VersionUpdateRunner(Logger logger)
setLocaldescriptor
public final void setLocaldescriptor(File localdescriptor)
- Parameters:
localdescriptor
- The localdescriptor to set.
setIncrease
public final void setIncrease(String increase)
- Parameters:
increase
- The increase to set.
setVersion
public final void setVersion(String version)
- Parameters:
version
- The version to set.
run
public Object run()
throws Exception
- Throws:
Exception
main
public static void main(String[] args)
throws TransformerException,
IOException
- Throws:
TransformerException
IOException
setRepositoryElements
public void setRepositoryElements(RepositoryElement[] repositoryElements)
setSilent
public void setSilent(boolean silent)
- Specified by:
setSilent
in interface JJarRunner
isSilent
public boolean isSilent()
- Specified by:
isSilent
in interface JJarRunner
setDefaultdependencyversion
public final void setDefaultdependencyversion(String defaultdependencyversion)
- Parameters:
defaultdependencyversion
- The defaultdependencyversion to set.
lookupRepository
protected Repository lookupRepository()
getRepositoryElement
protected RepositoryElement getRepositoryElement()
getRepositoryElements
protected RepositoryElement[] getRepositoryElements()
getFileName
protected static final String getFileName(URL url)
log
protected void log(String msg)
Copyright © 2007 CERN. All Rights Reserved.