On 2008-12-02, Garrett Smith <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to