Perform some tasks based on whether a given condition holds true or not.
This task is heavily based on the Condition framework that can be found in Ant 1.4 and later, therefore it cannot be used in conjunction with versions of Ant prior to 1.4.
This task doesn't have any attributes, the condition to test is
specified by a nested element - see the documentation of your
Just like the
In addition to the condition, you can specify three different
child elements,
The
Use the following task to define the
<taskdef name="if" classname="net.sf.antcontrib.logic.IfTask" />
author | |
---|---|
package |
phing.tasks.system |
addElse(\SequentialTask $e)
addThen(\SequentialTask $t)
countConditions() : integer
integer
createHttp()
createReferenceExists() : \ReferenceExistsCondition
createVersionCompare()
customChildCreator(string $elementName, \Project $project) : \Condition
getConditions() : array
array
getIterator()
getProject() : \Project
log(string $msg, integer $level = \Project::MSG_INFO) : void
string
The message to be logged.
integer
The message's priority at this message should have
main()
setProject(\Project $project) : void
thenTasks :
elseIfTasks :
elseTasks :
conditions :
project : \Project