Bug 26145 - delete task and missing folders
Summary: delete task and missing folders
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.6.0
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2004-01-14 22:50 UTC by Marius Scurtescu
Modified: 2008-11-24 03:58 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Marius Scurtescu 2004-01-14 22:50:42 UTC
It does not seem to be possible to diferentiate between files/directories that
do not exist and files/directories that cannot be deleted.

I would like my delete task to fail if it cannot delete some existing folder and
to succeed if that folder is not there to begin with (already deleted). You
would need this in 'clean' targets, running them multiple times should not fail. 

I guess you can achieve this using some extra targets that first check if the
folder is there, but this adds unnecessary complexity to the script.