Cornish, Merrill wrote:
> NAnt properties observe conventional scoping rules.  So, for example, if
> you declare a property within a task definition, it is only visible in
> that task--a task "temporary."  Properties declared outside of all task
> definitions are global to all tasks.
>   
I think the original poster was talking about target definitions, not 
tasks.  If that's what you mean as well, then I've never seen that 
behavior.  A quick test for me shows that

  <target name="all" depends="t1,t2">
    <echo message="Prop 1 is ${prop1}" />
  </target>

  <target name="t1">
    <property name="prop1" value="val1"/>
  </target>

  <target name="t2">
    <echo message="Prop1 in t2 is ${prop1}"/>
  </target>

works fine, meaning that both the all and t2 targets can see the prop1 
property defined in the t1 target.

Gary



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to