Hi Gary,

Does target::has-executed('someOtherTarget') return false if the target
execution has failed (It executed though)? I want to execute a target
only if the given target (someOtherTarget) has executed successfully.

Regards,
Sandeep

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary
Feldman
Sent: Tuesday, May 10, 2005 2:51 PM
To: nant-users@lists.sourceforge.net
Subject: Re: [Nant-users] Code conditional on whether a target is
defined...

Bevan Arps wrote:

>>Depending on whether a target is defined or not I  
>>want to perform certain operations. 
>>    
>>
>
>I don't know of any way to check to see if a particular target *is
>going* to be called - but you can define a property to tell if it *has*
>been run.
>  
>
It's unnecessary to define a property.  You can use the 
target::has-executed function, e.g.
   <someTask ... if="${target::has-executed('someOtherTarget')}" />

Gary



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to