Bugs item #2797647, was opened at 2009-05-27 15:51
Message generated for change (Tracker Item Submitted) made by mikeratzlaff
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=2797647&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Functions
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mike Ratzlaff (mikeratzlaff)
Assigned to: Nobody/Anonymous (nobody)
Summary: property::exists returns true for temporary properties

Initial Comment:
Temporary properties created by the foreach task cause the property::exists() 
function to return true even outside of the foreach task.  Referencing these 
properties of course causes NAnt to fail.

See this example:
<echo message="TestLine" file="Test.txt" />     
<echo message="Before Loop:" />
<echo message="Property 'foreachtest' exists: 
${property::exists('foreachtest')}" />
<foreach item="Line" in="Test.txt" property="foreachtest" >
        <echo message="Inside Loop:" />
        <echo message="Property 'foreachtest' exists: 
${property::exists('foreachtest')}" />
        <echo message="Property 'foreachtest' contains '${foreachtest}'" />
</foreach>
<echo message="Outside Loop:" />
<echo message="Property 'foreachtest' exists: 
${property::exists('foreachtest')}" />
<echo message="Property 'foreachtest' contains '${foreachtest}'" />

The function results are False,True,True when they should be False,True,False
This script fails on the final line while evaluating ${foreachtest}.
It will also fail if evaluating ${property::get-value('foreachtest')}

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=2797647&group_id=31650

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to