ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul J. Lucas" <pauljlu...@mac.com>
Subject Filter on copy with directory contents -- solution
Date Thu, 21 Feb 2008 23:28:19 GMT
After a friend pointed me to <pathconvert>, I managed to figure out a  
pure Ant solution:

   <pathconvert pathsep="&#0010;" property="Info.plist:ClassPath">
     <fileset dir="somedir" includes="*.jar"/>
     <mapper>
       <chainedmapper>
         <flattenmapper/>
         <regexpmapper from="(.*)" to="&lt;string&gt;\1&lt;/ 
string&gt;"/>
       </chainedmapper>
     </mapper>
   </pathconvert>

   <copy file="..." todir="...">
     <filterset>
         <filter token="CLASSPATH" value="${Info.plist:ClassPath}"/>
     </filterset>
   </copy>

This assumes the file contains @CLASSPATH@ as the string to replace.

- Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message