org.sadun.util.ant
Class Version

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.sadun.util.ant.BaseVersion
              extended byorg.sadun.util.ant.Version

public class Version
extends BaseVersion

A task to generate Versionobjects when compiling.

Note: tools.jar must be in classpath for the task to work.

Version:
1.1
Author:
Cristiano Sadun

Nested Class Summary
 
Nested classes inherited from class org.sadun.util.ant.BaseVersion
BaseVersion.VClassLoader
 
Field Summary
 
Fields inherited from class org.sadun.util.ant.BaseVersion
BUILD_NUMBER_PROPERTY_NAME, packageName, useExistingVersionClass, versionClsPackageName, versionFQClsName, versionInfoPath, versionObjectBinaryPath, versionObjectSourcePath, versionSimpleClsName
 
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
Version()
           
 
Method Summary
 void execute()
          Create a subclass of VersionImplwith the appropriate values.
 java.lang.String getLevel()
           
 int getMajor()
           
 int getMicro()
           
 int getMinor()
           
 java.lang.String getPropertyName()
           
 boolean isDeleteGeneratedCode()
           
 boolean isOverride()
           
 boolean isUseExistingVersionClass()
           
 boolean isVerbose()
           
static void main(java.lang.String[] args)
           
 void setDeleteGeneratedCode(boolean deleteGeneratedCode)
           
 void setLevel(java.lang.String level)
           
 void setMajor(int major)
           
 void setMicro(int micro)
           
 void setMinor(int minor)
           
 void setOverride(boolean override)
           
 void setPropertyName(java.lang.String propertyName)
           
 void setUseExistingVersionClass(boolean useExistingVersionClass)
           
 void setVerbose(boolean verbose)
           
 
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
 

Constructor Detail

Version

public Version()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Create a subclass of VersionImplwith 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)