it.haefelinger.flaka
Class RunMacro
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
it.haefelinger.flaka.Task
it.haefelinger.flaka.RunMacro
- All Implemented Interfaces:
- Cloneable
public class RunMacro
- extends Task
A task allowing the dynamic execution of a macro or task.
- 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
args
protected List args
RunMacro
public RunMacro()
setName
public void setName(String s)
- The name of the macro to execute.
- Parameters:
s -
setFail
public void setFail(boolean b)
- Fail if macro does not exist.
- Parameters:
b -
getFail
public boolean getFail()
createParam
public RunMacro.Param createParam()
- nested element
param
createAttribute
public RunMacro.Param createAttribute()
- nested element
attribute
createArg
public RunMacro.Param createArg()
- nested element
arg
getargs
protected List getargs()
addarg
protected void addarg(Object obj)
onerror
protected void onerror(String s)
runmacro
protected void runmacro(String m,
Object[] args)
execute
public void execute()
throws BuildException
- Overrides:
execute in class Task
- Throws:
BuildException