it.haefelinger.flaka
Class RunMacro

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by it.haefelinger.flaka.Task
              extended by 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

Nested Class Summary
protected  class RunMacro.Param
           
 
Field Summary
protected  List args
           
protected  boolean fail
           
protected  String name
           
 
Fields inherited from class it.haefelinger.flaka.Task
debug, el
 
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
RunMacro()
           
 
Method Summary
protected  void addarg(Object obj)
           
 RunMacro.Param createArg()
          nested element arg
 RunMacro.Param createAttribute()
          nested element attribute
 RunMacro.Param createParam()
          nested element param
 void execute()
           
protected  List getargs()
           
 boolean getFail()
           
protected  void onerror(String s)
           
protected  void runmacro(String m, Object[] args)
           
 void setFail(boolean b)
          Fail if macro does not exist.
 void setName(String s)
          The name of the macro to execute.
 
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
 
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

name

protected String name

fail

protected boolean fail

args

protected List args
Constructor Detail

RunMacro

public RunMacro()
Method Detail

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