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

           Summary: FileSet and DirSet break if the directory does not exist
           Product: Ant
           Version: 1.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Ie

<fileset dir="d:\temp\some-nonexistent-dir">
    <include name="**\foo.java"/>
</fileset>

will cause the build to break, whereas it should probably just return an empty 
fileset. The current behaviour causes build files to become twisted just to 
circumvent unexpected build breakages. Ie it becomes necessary to include 
checks for directory existent before configuring any FileSet.

It is particularly annoying when you have a build system made up of reuseable 
components and it is not always certain that the directories for all possible 
generated artfects will exist at a certain point in time.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to