ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Smith" <>
Subject Re: substring
Date Wed, 09 Jul 2008 06:21:46 GMT
On Tue, Jul 8, 2008 at 12:51 PM, Anthony Muller <> wrote:
> Hello,
> Is it possible to do a substring operation with Ant?
Not exactly.

But it is possible to do a string/token replacement -- not exactly
what you asked, but it can get the job done. This is done using a

I'm using this feature to replace certain strings in my files with the
empty string (removal). In the example below, I replace "from" with
from: "APE.namespace("APE.dom");"
to:    ""
<concat destfile="${src}/dom/_dom.js">
<filelist dir="${src}/dom" files="viewport-f.js, position-f.js,
classname-f.js, traversal-f.js, Event.js"/>
      <replacestring from="APE.namespace("APE.dom");" to=""/>
      <replacestring from="APE.namespace('APE.dom');" to=""/>


> Cheers,
> Anthony

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

View raw message