org.freecompany.imp
Class AntOverride

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.Ant
              extended by org.freecompany.imp.AntOverride
All Implemented Interfaces:
java.lang.Cloneable

public class AntOverride
extends org.apache.tools.ant.taskdefs.Ant

This is a subclass of the standard Ant task that exposes the member field values necessary to properly control the build from within Imp. In particular, the dir attribute is necessary for logging output and the targets are needed in order to determine what is executing. Notes: There are our copies of the actual task members that are internal to the <@see Ant/> task but are completely inaccessible due to both its access level and the lack of any accessors. If this is ever corrected in Ant we should be sure to eliminate this otherwise needless duplication.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.Ant
org.apache.tools.ant.taskdefs.Ant.Reference, org.apache.tools.ant.taskdefs.Ant.TargetElement
 
Field Summary
protected  java.io.File dir
           
protected  java.util.List<java.lang.String> targets
           
 
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
AntOverride()
           
 
Method Summary
 java.io.File getDir()
           
 java.util.List<java.lang.String> getTargets()
           
 void setDir(java.io.File dir)
           
 void setTarget(java.lang.String target)
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.Ant
addConfiguredTarget, addPropertyset, addReference, createProperty, execute, getNewProject, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, setAntfile, setInheritAll, setInheritRefs, setOutput
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, 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
 

Field Detail

dir

protected java.io.File dir

targets

protected java.util.List<java.lang.String> targets
Constructor Detail

AntOverride

public AntOverride()
Method Detail

setDir

public void setDir(java.io.File dir)
Overrides:
setDir in class org.apache.tools.ant.taskdefs.Ant

getDir

public java.io.File getDir()

setTarget

public void setTarget(java.lang.String target)
Overrides:
setTarget in class org.apache.tools.ant.taskdefs.Ant

getTargets

public java.util.List<java.lang.String> getTargets()