public class ExitTask
extends org.apache.tools.ant.taskdefs.Exit
Exit but allows to successfully end the build
Exits the active build, giving an additional message
if available.
The if and unless attributes make the
exit conditional -both probe for the named property being defined.
The if tests for the property being defined, the
unless for a property being undefined.
If both attributes are set, then the task exits only if both tests
are true. i.e.
exit := defined(ifProperty) && !defined(unlessProperty)A single nested
<condition> element can be specified
instead of using if/unless (a combined
effect can be achieved using isset conditions).| Constructor and Description |
|---|
ExitTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected void |
exit(String message) |
addText, createCondition, setIf, setIf, setMessage, setStatus, setUnless, setUnlessbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.taskdefs.Exitorg.apache.tools.ant.BuildExceptionprotected void exit(String message)
Copyright © 2016 Nuxeo SA. All Rights Reserved.