ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Muller" <>
Subject RE: substring
Date Wed, 09 Jul 2008 10:37:48 GMT
Thanks for the tip!

-----Original Message-----
From: Garrett Smith [] 
Sent: Wednesday, July 09, 2008 8:22 AM
To: Ant Users List
Subject: Re: substring

On Tue, Jul 8, 2008 at 12:51 PM, Anthony Muller <>
> 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:

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

View raw message