You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/03/18 14:15:51 UTC
DO NOT REPLY [Bug 18102] New: -
A new core Task, that applies a Task to all files of a FileSet
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18102>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18102
A new core Task, that applies a Task to all files of a FileSet
Summary: A new core Task, that applies a Task to all files of a
FileSet
Product: Ant
Version: 1.1
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Other
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: g.zarncke@sinnerschrader.com
I propose a new core Task, that applies (executes) another (nested) Task to all
files of a given FileSet ONE by ONE.
This functionality is already present for system commands with the Apply-Task
when parallel="false", but sorely missing for general Tasks if they not by
themself accept a FileSet parameter. Of course one can always wrap the task
call in a script, that recalls ant, but this is neither easy, not portable, not
readable not efficient.
It could possibly be done by for each file in the set dowing the following:
Assigning the file to a property and the reevaluating and executing the nested
Task.
This cannot be easily implemented as a custom Task, because repeated calling of
execute() cannot change the properties of the called Task easily.