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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to