Bug 50124 - "delete" task ignores "errorOnMissingDir" attribute
Summary: "delete" task ignores "errorOnMissingDir" attribute
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.8.1
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 1.8.2
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-20 10:59 UTC by Isaac Shabtay
Modified: 2010-10-25 05:35 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Isaac Shabtay 2010-10-20 10:59:17 UTC
The "delete" task fails when processing a FileSet that is based on a non-existent directory, even if "errorOnMissingDir=false" is set.

The code that fails, "Delete.java":

            } else if (!fsDir.isDirectory()) {
                handle("Directory does not exist: " + fsDir);

Should add a check for "errorOnMissingDir".
Comment 1 Stefan Bodewig 2010-10-25 05:35:36 UTC
I wouldn't be surprised if this wasnt the only place where a datatype's
behavior attribute was ignore by a task.

fixed with svn revision 1027000

Thanks