ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1484] New - Request additional flexibility in AntOn task for Ant2
Date Tue, 24 Apr 2001 19:17:03 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1484

*** shadow/1484	Tue Apr 24 12:17:03 2001
--- shadow/1484.tmp.18682	Tue Apr 24 12:17:03 2001
***************
*** 0 ****
--- 1,41 ----
+ +============================================================================+
+ | Request additional flexibility in AntOn task for Ant2                      |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1484                        Product: Ant                     |
+ |       Status: NEW                         Version: 1.3                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Enhancement              OS/Version: Windows NT/2K           |
+ |     Priority:                           Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: ehandel@netvision.net.il                                     |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ I've been needing an AntOn task, but with slightly different requirement than 
+ are mentioned in the request in http://jakarta.apache.org/ant/ant2/requested-
+ features.txt:
+ I would like to run one specified target in one specified ant file. But I would 
+ to call it for all the files in a fileset. I would like to specify the name of 
+ a property that will succesively be set to the name of each file in the file 
+ set.
+ 
+ e.g.
+ <target name="rename.in.jar">
+   <property name="rename.in.jar.tmp" location="/tmp/rename.in.jar"/>
+   <mkdir dir="${rename.in.jar.tmp}"/>
+   <unjar src="${rename.in.jar.file}" dest="${rename.in.jar.tmp}"/>
+   <move file="${rename.in.jar.tmp}/old.txt" 
+ tofile="${rename.in.jar.tmp}/new.txt"/>
+   <jar jarfile="${rename.in.jar.file}" basedir="${rename.in.jar.tmp}"/>
+   <delete dir="${rename.in.jar.tmp}"/>
+ </target>
+ 
+ <target name="main">
+   <anton antfile="${ant.file}" target="rename.in.jar" 
+ antonproperty="rename.in.jar.file">
+     <fileset dir="jars" includes="*.jar"/>
+   </anton>
+ </target>

Mime
View raw message