org.spiffyui.build
Class RevisionInfoTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.spiffyui.build.RevisionInfoTask
All Implemented Interfaces:
java.lang.Cloneable

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

The RevisionInfoTask gets information about the current revision being built and makes it available to the project. This task supports Subversion and GIT. Both clients must be available on the current path. It exports two properties: revision.number and revision.date into the project.


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
RevisionInfoTask()
           
 
Method Summary
 void execute()
          Executes this task to run the compiler.
 void reset()
          Reset state to default.
 void setDir(java.io.File dir)
          Sepcify the location of the directory to get the revision of
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevisionInfoTask

public RevisionInfoTask()
Method Detail

setDir

public void setDir(java.io.File dir)
Sepcify the location of the directory to get the revision of

Parameters:
dir - the output file directory

reset

public void reset()
Reset state to default.


execute

public void execute()
             throws org.apache.tools.ant.BuildException
Executes this task to run the compiler.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException - if there isn't enough information to run the GWT compiler