* Execute all nestedTasks.
*
* @throws BuildException if one of the nested tasks fails.
*/
public void execute() throws BuildException {
LocalProperties localProperties
= LocalProperties.get(getProject());
localProperties.enterScope();
try {
for (Iterator i = nestedTasks.iterator(); i.hasNext();) {
Task nestedTask = (Task) i.next();
nestedTask.perform();
}
} finally {
localProperties.exitScope();
}
}