<delete dir="f00"/>
The delete task will not raise an error and your directory foo will not exist.
In my private branch of nant that I'm working on I use functions in properties so that I can write:
<delete dir="foo" if="${DirectoryExists('foo')}"/>
Apache Ant fails on default. The provide a quiet switch which suppresses the error message and sets failonerror to be true.
I vote no to the change.
On Tuesday, February 18, 2003, at 11:33 PM, Gert Driesen wrote:
Hi,
In my opinion the current behaviour of the delete task is not valid.
It current throws an exception (which causes the build to fail if
failonerror=true) when the file or directory that you want to delete doesn't
exist.
If you want to delete a directory or file that doesn't exist, then this
should just be considered a successful execution of the task, shouldn't it
be ?
Certainly if there's currently no means to check if a directory (or file)
actually exists.
Does everyone agree to change this behaviour ?
Is it ok if I submit a patch to you, Ian ?
Thanks,
Gert
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers
------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
