it.haefelinger.flaka
Class Throw

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.Exit
              extended by it.haefelinger.flaka.Throw
All Implemented Interfaces:
Cloneable

public class Throw
extends Exit

Extension of <fail> that can throw an exception that is a reference in the project.

This may be useful inside the <catch> block of a <trycatch> task if you want to rethrow the exception just caught.

Since:
1.0
Author:
merzedes

Field Summary
protected  Reference reference
           
 
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
Throw()
           
 
Method Summary
 void execute()
           
 void setReference(Reference var)
           
 void setVar(Reference var)
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.Exit
addText, createCondition, setIf, setMessage, setStatus, setUnless
 
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, 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

reference

protected Reference reference
Constructor Detail

Throw

public Throw()
Method Detail

setVar

public void setVar(Reference var)

setReference

public void setReference(Reference var)

execute

public void execute()
             throws BuildException
Overrides:
execute in class Exit
Throws:
BuildException