ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: replaceregexp
Date Wed, 03 Dec 2008 05:04:21 GMT
On 2008-12-02, Garrett Smith <> wrote:

> I want to use task replaceregexp to strip whitespace from selected jsp's.

> The problem is that I want a FileList but replaceregexp only takes a FileSet.

> Why does replaceregexp designed to not take a FileList?

It is the other way around.  replaceregexp like most any task in Ant
predates filelist and resource collections in general.  Many tasks
have been adapted later, but not all of them.

Please open an enhancement request in bugzilla, this will enhance the
chance that the task will be made resource collection aware for Ant

> Is there another element that does?

It depends on how complex the replacements are.  For simple cases a
replacetokens filter nested into a copy task may be sufficient.  If it
is more complex, I'm afraid there is no other solution.


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

View raw message