it.haefelinger.flaka
Class RunTarget

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.RunTarget
All Implemented Interfaces:
Cloneable

public class RunTarget
extends Task

A task allowing the dynamic execution of a target.

Since:
1.0
Author:
merzedes

Field Summary
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
RunTarget()
           
 
Method Summary
 void execute()
           
 boolean getFail()
           
 String getName()
           
protected  void onerror(String s)
           
 void setFail(boolean b)
          Whether to fail if target does not exist.
 void setName(String s)
          The name of the target 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
Constructor Detail

RunTarget

public RunTarget()
Method Detail

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