ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul J. Lucas" <>
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"/>
         <regexpmapper from="(.*)" to="&lt;string&gt;\1&lt;/ 

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

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

- Paul

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message