ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebastian ssmoller <sebastian.ssmol...@web.de>
Subject Re: AW: Interesting <ant/> behaviour
Date Wed, 11 Aug 2004 07:21:34 GMT

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

true. but these properties are NOT nested elements of the <ant/> call
but of the <antcall/> call - thats why i am confused. IMO the <antcall/>
properties should not have to do anything with the <ant/> properties.

seb

> 
> Jan
> 
> > -----Urspr√ľngliche Nachricht-----
> > Von: sebastian ssmoller [mailto:sebastian.ssmoller@gmx.net]
> > Gesendet am: Dienstag, 10. August 2004 18:23
> > An: user@ant.apache.org
> > 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: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> 


-- 
"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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message