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 [EMAIL PROTECTED]  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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to