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 11270] - FileSet and DirSet break if the directory does not exist
Date Fri, 02 Aug 2002 06:55:14 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=11270>.
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=11270

FileSet and DirSet break if the directory does not exist





------- Additional Comments From j_a_fernandez@yahoo.com  2002-08-02 06:55 -------
FileList/DirList allow you to define files on your dependencies even if they do 
not exists yet. FileSet/DirSet only allow you to talk about things that exist.
It appears to me that the problem you are trying to solve is the fact that you 
cannot express in <uptodate> things about files that may not exist yet.

Another thing to consider, would be to make <uptodate> usable from inside a 
<condition> task, like <available>. That would allow you to define more complex

expressions that may solve your problem:

  <condition property="toto.notRequired">
    <and>
        <available file="${toto.class.dir}" type="dir">
        <uptodate>
            <srcfiles refid="toto.class.fileset"/>
            <srcfiles refid="toto.otherfiles.fileset"/>
            <mapper type="merge" to="${toto.dir}/ejb-jar.xml"/>
        </uptodate>
    </and>
  </condition>

Both may be complemantary, bu this last may be a better reflection of your
particular kind of special case scenario.

--
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