ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: replaceregexp
Date Wed, 03 Dec 2008 05:04:21 GMT
On 2008-12-02, Garrett Smith <dhtmlkitchen@gmail.com> 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
1.8.x.

> 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.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message