You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ROSSEL Olivier <ol...@airbus.com> on 2003/02/25 15:11:58 UTC

Doing something only if copied nothing.

I have a <copy> task.
I want to excute a specific <delete> task only if the <copy> task
did not overwirte anything.

Is it possible?
What are the useful tags for that?


---cut here---


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

Re: Doing something only if copied nothing.

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
ROSSEL Olivier wrote:
> I have a <copy> task.
> I want to excute a specific <delete> task only if the <copy> task
> did not overwirte anything.
> 

Not directly, but you might be able to use <uptodate> prior to the copy to 
set a property indicating that copy *will* modify something.

I haven't tried it, so YMMV ...

Conor