ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Wood" <>
Subject How do I strip off part of the file name when I do a ANT copy
Date Thu, 18 Oct 2007 19:44:48 GMT

I have a bunch of templates that I expandproperties on to produce
environment specific versions using the following code:

      <copy file="${current.file}" flatten="true"

The file name ( in the property ${current.file} ) contains the name
"TEMPLATE" and I want to remove once I perform this move. For example: 

that I want to strip the ".TEMPLATE" part when I copy this file. What is
the best way to accomplish this task?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message