org.apache.tools.ant.taskdefs

Class PropertyHelperTask

public class PropertyHelperTask extends Task

This task is designed to allow the user to install a different PropertyHelper on the current Project. This task also allows the installation of PropertyHelper delegates on either the newly installed or existing PropertyHelper.

Since: Ant 1.8

Nested Class Summary
classPropertyHelperTask.DelegateElement
Nested delegate for refid usage.
Method Summary
voidaddConfigured(PropertyHelper propertyHelper)
Add a new PropertyHelper to be set on the Project.
voidaddConfigured(PropertyHelper.Delegate delegate)
Add a PropertyHelper delegate to the existing or new PropertyHelper.
PropertyHelperTask.DelegateElementcreateDelegate()
Add a nested <delegate refid="foo" /> element.
voidexecute()
Execute the task.

Method Detail

addConfigured

public void addConfigured(PropertyHelper propertyHelper)
Add a new PropertyHelper to be set on the Project.

Parameters: propertyHelper the PropertyHelper to set.

addConfigured

public void addConfigured(PropertyHelper.Delegate delegate)
Add a PropertyHelper delegate to the existing or new PropertyHelper.

Parameters: delegate the delegate to add.

createDelegate

public PropertyHelperTask.DelegateElement createDelegate()
Add a nested <delegate refid="foo" /> element.

Returns: DelegateElement

execute

public void execute()
Execute the task.

Throws: BuildException on error.