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 29585] - <apply>: Filelist's behaving like filesets - Require files to be present in order to be included.
Date Wed, 16 Jun 2004 08:30:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29585>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29585

<apply>: Filelist's behaving like filesets - Require files to be present in order to
be included.

peter.reilly@corvil.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows XP                  |All
            Summary|Filelist's behaving like    |<apply>: Filelist's behaving
                   |filesets - Require files to |like filesets - Require
                   |be present in order to be   |files to be present in order
                   |included.                   |to be included.



------- Additional Comments From peter.reilly@corvil.com  2004-06-16 08:30 -------
I see, you want <apply> to be able to pass
filenames to the executable for files that
do not exist.

I think this may be an enchancement request.

I think you are reading too much into the statement
in the filelist documentation.
The filelist type/class allows files that do not
exist to be specified. It is up to the task the
uses this type to process this file path as it sees fit.
The <apply> task ignores them, the <concat> task ignores
them (but issues a warning).
Changing the behaviour of the <apply> task may be backwardly
incompatible - some build scripts may depend on the current behaviour.
A fix could be an attribute to allow not present files to be passed
to the executable.
As a workaround, you could use the <for> task from
ant-contrib:

    <ac:for param="file">
      <ac:path>
        <ac:filelist dir="." files="a.x,build.xml"/>
      </ac:path>
      <ac:sequential>
        <exec dir="." executable="echo">
          <arg value="param1"/>
          <arg value="@{file}"/>
        </exec>
      </ac:sequential>
    </ac:for>

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


Mime
View raw message