| org.netbeans.installer.infra.build.ant.If
If | public class If extends Task implements TaskContainer(Code) | | This class is an ant task, which adds conditional execution capabilities. It
examines the value of the given property and executed the nested tasks only if
the the property's value equals to the given string.
author: Kirill Sorokin |
Constructor Summary | |
public | If() Constructs a new instance of the
If task. |
Method Summary | |
public void | addTask(Task task) Registers a child task. | public void | execute() Executes the task. | public void | setProperty(String property) Setter for the 'property' property. | public void | setValue(String value) Setter for the 'value' property. |
If | public If()(Code) | | Constructs a new instance of the
If task. It simply sets the
default values for the attributes.
|
addTask | public void addTask(Task task)(Code) | | Registers a child task. The supplied Task object will be added
to the list of child tasks and executed if the condition is satisfied.
Parameters: task - The Task object to register. |
execute | public void execute() throws BuildException(Code) | | Executes the task. If the required value is set, then the property's value is
compared to it and the child tasks are executes if they are equal. If the
required value is not set, then the child tasks are executed if the property
was set, without regard to its value.
throws: org.apache.tools.ant.BuildException - if a child task fails to execute. |
setProperty | public void setProperty(String property)(Code) | | Setter for the 'property' property.
Parameters: property - The new value for the 'property' property. |
setValue | public void setValue(String value)(Code) | | Setter for the 'value' property.
Parameters: value - The new value for the 'value' property. |
|
|