it.haefelinger.flaka
Class RunTarget
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
it.haefelinger.flaka.Task
it.haefelinger.flaka.RunTarget
- All Implemented Interfaces:
- Cloneable
public class RunTarget
- extends Task
A task allowing the dynamic execution of a target.
- Since:
- 1.0
- Author:
- merzedes
| Fields inherited from class it.haefelinger.flaka.Task |
debug, el |
| Methods inherited from class it.haefelinger.flaka.Task |
debug, debug, error, error, getProperty, getref, info, log, setDebug, setEl, throwbx, throwbx, toFile, verbose, warn, warn |
| 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, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
name
protected String name
fail
protected boolean fail
RunTarget
public RunTarget()
setName
public void setName(String s)
- The name of the target to execute
- Parameters:
s -
getName
public String getName()
setFail
public void setFail(boolean b)
- Whether to fail if target does not exist.
- Parameters:
b -
getFail
public boolean getFail()
onerror
protected void onerror(String s)
execute
public void execute()
throws BuildException
- Overrides:
execute in class Task
- Throws:
BuildException