org.barracudamvc.taskdefs
Class NoFail

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.barracudamvc.taskdefs.NoFail
All Implemented Interfaces:
org.apache.tools.ant.TaskContainer

public class NoFail
extends org.apache.tools.ant.Task
implements org.apache.tools.ant.TaskContainer

Task used to execute other tasks that may throw an exception when the build should continue. Simply nest any tasks to be executed within this task. If any task throws a BuildException then an optional property (named by the "setProperty" attribute) will be set but any other tasks will still get executed. This task will never throw a BuildException, thus it always completes successfully even if a nested task fails.

Since:
saw_060403_1
Author:
shawnw@atmreports.com

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
NoFail()
           
 
Method Summary
 void addTask(org.apache.tools.ant.Task task)
           
 void execute()
           
 void setEcho(boolean echo)
           
 void setSetProperty(String setProperty)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoFail

public NoFail()
Method Detail

addTask

public void addTask(org.apache.tools.ant.Task task)
Specified by:
addTask in interface org.apache.tools.ant.TaskContainer

setSetProperty

public void setSetProperty(String setProperty)

setEcho

public void setEcho(boolean echo)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException


Copyright © 2004 BarracudaMVC.org All Rights Reserved.