Hi, Gary....

I have tried those alternatives.  What I had in mind, but didn't elaborate, is 
running the script "as if it was really going to do some work", but only get 
messages saying "Kilroy was here....".  An approach for automation 
development/testing.  That's why I would want to do something like:

<if test=${log.test.only}>  ("true")
<echo message="Kilroy was here:  ${target::get-current-target()}"/>
<how_do_i_get_out_of_here/>
</if>

It's a way to check flow with out running stuff that isn't completed, or that 
you do not want actually build/deploying.

Rod

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Gary Feldman
Sent: Monday, March 27, 2006 10:15 AM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Exiting a Task


Rod Ayers wrote:

> Is there a way to exit from a task without completing the entire 
> ask...other then <fail/>(!!)...?
>
I assume you really mean exit from a target.

Usually the right way to solve this is to restructure the target, 
separating the part that always gets executed from the part that's 
optional.  There are a number of way of doing this.  You can use the 
<call> task with an if/unless condition.  You could also put the 
condition on the optional target.  In some cases, you might want to omit 
the condition from the first part, and instead have a parent target that 
depends upon the two, with the condition on the optional target.

Gary

>
>
> */Thanks...!/*
>
> */Rod Ayers/*
> Lead Build Release Engineer
> Configuration Management
> Desk Phone:  (949) 517-0527
> Blackberry:    (949) 355-9874
> 3337 Michelson Dr., Irvine, CA  92612
> Suite 340
> B-414.05
>
>




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to