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:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 10:24 PM
To: [EMAIL PROTECTED]
Subject: RE: problem with scoping of properties?


> From: Dan Hermann [mailto:[EMAIL PROTECTED]]
> 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>

Reply via email to