http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1763
*** shadow/1763 Tue May 15 19:03:45 2001
--- shadow/1763.tmp.5697 Tue May 15 19:03:45 2001
***************
*** 0 ****
--- 1,47 ----
+ +============================================================================+
+ | Apply task with parallel=true does not act as expected |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1763 Product: Ant |
+ | Status: NEW Version: 1.3 |
+ | Resolution: Platform: Sun |
+ | Severity: Normal OS/Version: Solaris |
+ | Priority: High Component: Core tasks |
+ +----------------------------------------------------------------------------+
+ | Assigned To: [EMAIL PROTECTED] |
+ | Reported By: [EMAIL PROTECTED] |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ I want to use the apply task to combine files from two filesets into one
target
+ file. I expected, with parallel set to true, that I could specify multiple
+ filesets, and my command would be executed once with arguments from all the
+ filesets. Instead, my command is executed once per fileset. The arguments
+ generated by the second fileset thus have a timestamp older than my target
+ file, and my command never executes on the second fileset.
+
+ The correct behavior would be (in ExecuteOn.java) for parallel=true
+ * Build up vector of all files from all filesets.
+ * Execute command
+
+ Sample apply task:
+
+ <apply executable="java" dest="${enterprise.build.resources}"
+ parallel="true">
+ <arg value="-cp"/>
+ <arg path="${core.build.dir}/classes:${core.build.dir}/lib/xerces.jar"/>
+ <arg value="com.arsdigita.persistence.pdl.PDL"/>
+ <arg value="${enterprise.build.resources}/persistence-metadata.xml"/>
+ <fileset dir="${basedir}">
+ <include name="**/pdl/*.pdl"/>
+ </fileset>
+ <fileset dir="${core.pdl.dir}">
+ <include name="**/*.pdl"/>
+ </fileset>
+ <!--
+ Only recreate the persistence-metadata.xml file if one of
+ the src xml files has changed
+ -->
+ <mapper type="merge" to="persistence-metadata.xml"/>
+ </apply>