net.sourceforge.esw.ant
Class BuildNumberTask

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--net.sourceforge.esw.ant.BuildNumberTask

public class BuildNumberTask
extends org.apache.tools.ant.Task

Pulls a build number from a file and increments it for the current build number, then puts the new build number back into the file.


Field Summary
protected static java.lang.String DELIMITER
           
protected  java.lang.String filename
           
 
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
BuildNumberTask()
           
 
Method Summary
 void execute()
          Executes the task for this BuildNumberTask instance.
 void setFilename(java.lang.String aFilename)
          Sets the filename attribute.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
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
 

Field Detail

filename

protected java.lang.String filename

DELIMITER

protected static final java.lang.String DELIMITER
Constructor Detail

BuildNumberTask

public BuildNumberTask()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Executes the task for this BuildNumberTask instance.
Overrides:
execute in class org.apache.tools.ant.Task

setFilename

public void setFilename(java.lang.String aFilename)
Sets the filename attribute.


Copyright 2002 Free Software Foundation. All Rights Reserved.