Hi BOb,
I am not aware of a means to do this in NAnt proper. In CI Factory's NAnt:
<target name="test">
<foreach item="String" in="1 2,3" delim=" ," property="count">
<echo message="${count}" />
<if test="${count == '2'}">
<break/>
</if>
</foreach>
</target>
Will output:
test:
[echo] 1
[echo] 2
Smiles,
Jay
On 1/8/08, Bob Archer <[EMAIL PROTECTED]> wrote:
>
> Is there a way to exit a foreach loop?
>
>
>
> BOb
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>
--
Jay Flowers
----------------------------------------------------------------------
http://jayflowers.com
---------------------------------------------------------------------
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users