Hi Thomas. > 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. > The checkin target will ONLY run when the checkout target > has also been defined. For example, your checkout target could define a property "checkout.hasRun" - and checkin could then check (using the if task) to see if the property has been defined before doing anything. > If the checkout target has been defined, certain other > targets will behave different. Like, there is no need to > remove the write protection on some files as they are not > write protected. Again, as long as the checkout target runs first, you could use a property "flag" for this. Hope this helps, Bevan. ****************************************************************************** "This message (and any files transmitted with it) are confidential and may be legally privileged. If you are not the intended recipient please notify the sender immediately and delete this message from your system. This message does not necessarily reflect the views of the Reserve Bank of New Zealand. If the recipient has any concerns about the content of this message they should seek alternative confirmation from the Reserve Bank of New Zealand." ****************************************************************************** ------------------------------------------------------- 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