org.sadun.util.ant
Class Version
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.sadun.util.ant.BaseVersion
org.sadun.util.ant.Version
- public class Version
- extends BaseVersion
A task to generate Version
objects when compiling.
Note: tools.jar must be in classpath for the task to work.
- Version:
- 1.1
- Author:
- Cristiano
Sadun
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 |
Methods inherited from class org.sadun.util.ant.BaseVersion |
baseName, computeLastBuildNumber, frontName, getExistingBuildNumber, getExistingVersionObject, getPackageName, getVersionInfoPath, getVersionObjectBinaryPath, getVersionObjectSourcePath, mkVersionClsName, setPackageName, setVersionInfoPath, setVersionObjectBinaryPath, setVersionObjectSourcePath |
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, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Version
public Version()
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Create a subclass of
VersionImpl
with the
appropriate values.
- Overrides:
execute
in class BaseVersion
- Throws:
org.apache.tools.ant.BuildException
getMajor
public int getMajor()
- Returns:
- Returns the major.
setMajor
public void setMajor(int major)
- Parameters:
major
- The major to set.
getMicro
public int getMicro()
- Returns:
- Returns the micro.
setMicro
public void setMicro(int micro)
- Parameters:
micro
- The micro to set.
getMinor
public int getMinor()
- Returns:
- Returns the minor.
setMinor
public void setMinor(int minor)
- Parameters:
minor
- The minor to set.
isUseExistingVersionClass
public boolean isUseExistingVersionClass()
- Returns:
- Returns the useExistingVersionClass.
setUseExistingVersionClass
public void setUseExistingVersionClass(boolean useExistingVersionClass)
- Parameters:
useExistingVersionClass
- The useExistingVersionClass to set.
getLevel
public java.lang.String getLevel()
- Returns:
- Returns the level.
setLevel
public void setLevel(java.lang.String level)
- Parameters:
level
- The level to set.
isDeleteGeneratedCode
public boolean isDeleteGeneratedCode()
- Returns:
- Returns the deleteGeneratedCode.
setDeleteGeneratedCode
public void setDeleteGeneratedCode(boolean deleteGeneratedCode)
- Parameters:
deleteGeneratedCode
- The deleteGeneratedCode to set.
main
public static void main(java.lang.String[] args)
isVerbose
public boolean isVerbose()
- Returns:
- Returns the verbose.
setVerbose
public void setVerbose(boolean verbose)
- Parameters:
verbose
- The verbose to set.
isOverride
public boolean isOverride()
setOverride
public void setOverride(boolean override)
getPropertyName
public java.lang.String getPropertyName()
setPropertyName
public void setPropertyName(java.lang.String propertyName)