ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1763] New - Apply task with parallel=true does not act as expected
Date Wed, 16 May 2001 02:03:45 GMT
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: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: mbryzek@arsdigita.com                                        |
+ |      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>

Mime
View raw message