ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Hermann <dherm...@quickarrow.com>
Subject RE: problem with scoping of properties?
Date Wed, 04 Apr 2001 03:34:13 GMT
actually, it's not a typo.  i was just trying to avoid posting the entire
file.  the following excerpts should explain.  i originally thought the
antcall statement might affect properties, but if i echo "builddir" from the
init2 target, it is still properly set.  it doesn't become undefined until
the "bl" target is reached.

  <target name="init">
    ...
    <antcall target="init2"/>
  </target>

  <target name="init2" depends="init_pl,init_bl,init_other">
    ...
  </target>


dan

-----Original Message-----
From: Sylvain Rey [mailto:ramsey@bluedot.com]
Sent: Tuesday, April 03, 2001 10:24 PM
To: ant-user@jakarta.apache.org
Subject: RE: problem with scoping of properties?


> From: Dan Hermann [mailto:dhermann@quickarrow.com]
> here are two excerpts from one of my build files:
> 
>   <target name="init_bl" if="ant.mode_bl">
>     <property name="ant.mode_other"	value="true"/>
>     <property name="mode.classpath"	value=""/>
>     <property name="builddir"		value="${carbon.home}/bl/classes"/>
>     <property name="srcdir"		value="${carbon.home}/bl/src"/>
>   </target>
> 
> and
> 
>   <target name="bl" depends="init">
is this a typo ?               ^^^^ (init_bl?)

>     <javac srcdir="${srcdir}" destdir="$builddir" debug="on"
> deprecation="on"/>
>   </target>

Mime
View raw message