Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-8
-
None
-
None
-
JDK 1.4.2_05, Ant 1.6.2, Windows XP
Description
The adding of nested Ant Task works differently for "usual" Tasks and Tasks that implement the "TaskContainer" interface. For the latter, the method "addTask" has to be called, instead of "add<NestedType>". Execution of the nested Tasks should be delegated to the TaskContainer since it is his responsibility.
Test:
The Parallel Task implements TaskContainer:
void testParallelTask(){
ant = new groovy.util.AntBuilder()
task = ant.parallel()
assert !task.dump().contains('nestedTasks=[]')
}