ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: problem with scoping of properties?
Date Wed, 04 Apr 2001 07:22:29 GMT
Dan Hermann <> wrote:

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

So the properties you set in init_pl will be available in the build
process that belongs to antcall, but not in your main process -
properties set in targets that get invoked by <ant> or <antcall> don't
get back into the main path.

I'm sure your build sequence could be refactored to avoid the
<antcall>, but then we probably need more information to help you.


View raw message