ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12163] New: - Sequential task: Looping over fileset
Date Thu, 29 Aug 2002 15:00:08 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message