This is defined behaviour. Providing values via nested <property>s 
has a major relevance than just "inheriting" values.

Jan

> -----Ursprüngliche Nachricht-----
> Von: sebastian ssmoller [mailto:[EMAIL PROTECTED]
> Gesendet am: Dienstag, 10. August 2004 18:23
> An: [EMAIL PROTECTED]
> Betreff: Interesting <ant/> behaviour
> 
> hi,
> first: i am not subscribed to the list so please use "reply to all" or
> add my private email addr to the cc list - thx.
> 
> i discovered the following interesting behaviour. i do not 
> know whether
> it is "defined"/expected or a bug so i decided to ask :)
> 
> i have two build scripts
> 
> ----- a.xml -----
> <project name="a">
> 
>     <property name="var" value="global"/>
> 
>     <target name="call">
>         <ant antfile="b.xml" inheritall="false" target="echo"/>
>     </target>
> 
>     <target name="caller">
>         <antcall target="call">
>             <param name="var" value="UPS :("/>
>         </antcall>
>     </target>
> 
> </project>
> ----- a.xml -----
> 
> 
> ----- b.xml -----
> <project name="b">
> 
>     <target name="echo">
>         <echo message="something to say : ${var}"/>
>     </target>
> 
> </project>
> ----- b.xml -----
> 
> so know when i call:
> 
> $ ant -f a.xml call
> 
> i get the expected result that the ${var} is not evaluated 
> but when i do
> 
> $ ant -f a.xml caller 
> 
> ${var} evaluates to "UPS :(" 
> 
> is this expected behaviour ? Why ? I thought setting "inheritall=false
> would not "forward" any property to the new env...
> 
> 
> thx
> regards,
> seb
> 
> -- 
> "Perfection is achieved, not when there is nothing left to add, 
> but when there is nothing left to take away."  
> --- Antoine de St. Exupery, Wind, Sand, and Stars, 1939 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to