BuildNumber (Apache Ant API)
org.apache.tools.ant.taskdefs
Class BuildNumber
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.BuildNumber
public class BuildNumber extends Task
Read, increment, and write a build number in a file
It will first
attempt to read a build number from a file, then set the property
"build.number" to the value that was read in (or 0 if no such value). Then
it will increment the build number by one and write it back out into the
file.
Since: Ant 1.5
Version: $Revision: 1.6.2.3 $ $Date: 2002/06/25 06:48:32 $
Author: Peter Donald
Method Summary
void
execute ()
Run task.
void
setFile (java.io.File file)
The file in which the build number is stored.
Methods inherited from class org.apache.tools.ant.Task
getDescription , getLocation , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , handleErrorOutput , handleOutput , init , isInvalid , log , log , maybeConfigure , perform , setDescription , setLocation , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
BuildNumber
public BuildNumber ()
setFile
public void setFile (java.io.File file)
The file in which the build number is stored. Defaults to
"build.number" if not specified.
Parameters: file
- the file in which build number is stored.
execute
public void execute ()
throws BuildException
Run task.
Overrides: execute
in class Task
Throws:
BuildException
- if an error occurs
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.