Okay, so the following will fail if the directory does not exist

                        <delete dir="${output}">

 

the following will pass if the directory does exist

                        <delete dir="${output}" failonerror="false"/>

 

what if I want it to be just like java’s ant where I am doing a clean target and I want it to pass if

  1. The directory already does not exist….ie. clean was successful because it was already clean
  2. I want it to fail if it tries to delete ${output} and cannot because a file is locked in that directory.

 

How do I get this behavior?  This was the default behavior in java ant which kicked butt.

Thanks,

dean



The information contained in this e-mail and any attachments hereto are for the exclusive use of the addressee and may contain confidential, privileged and nondisclosable information. If the recipient of this e-mail is not the addressee, or a person responsible for delivering this e-mail to the addressee, such recipient is strictly prohibited from reading, printing, photocopying, distributing or otherwise using this e-mail or any attachments hereto in any way. If the recipient has received this e-mail in error, please send return e-mail immediately notifying us of your receipt of this e-mail and delete the e-mail from your inbox. Thank you.

Reply via email to