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 2002/08/29 17:00:08 UTC
DO NOT REPLY [Bug 12163] New: -
Sequential task: Looping over 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=12163>.
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=12163
Sequential task: Looping over fileset
Summary: Sequential task: Looping over fileset
Product: Ant
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Other
Component: Core
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: schoen@tarsec.com
The "Sequential" task could be extended for not just executing the nested
targets once, but (optionally) for each entry of a given fileset. The name of
the file currently processed during one loop could be read from a system
property specified as an attribute of "sequential":
<fileset id="filelist" dir="/somedir">
<patternset pattern="*.txt" />
</fileset>
<!-- Iterate through fileset. At each iteration,
the name of the current file entry will be
stored in the system property "filelist.entry" -->
<sequential refid="filelist" current="filelist.entry">
<echo message="Current File: ${filelist.entry}" />
<echo message="Display file in console:" />
<concat>
<filelist dir="/somedir"
files="${filelist.entry}" />
</concat>
</sequential>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>