ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gle...@ca.ibm.com
Subject Re: templates ...
Date Tue, 11 Jul 2000 14:15:25 GMT




Sergey,

I just tested it with the latest CVS version of ant, and it worked fine.
Are you using an earlier version of ant?  Try grabbing the latest nightly
build.  The one associated with Tomcat 3.1 is a few months old, and there
have been LOTS of improvements since then.

Glenn McAllister
TID - Software Developer - VisualAge for Java
IBM Toronto Lab, (416) 448-3805
"An approximate answer to the right question is better than the
right answer to the wrong question." - John W. Tukey


Please respond to ant-dev@jakarta.apache.org

To:        ant-dev@jakarta.apache.org
cc:
Subject:        Re: templates ...


> <target name="all" depends="build_blah_project,build_foo_project">
> </target>
>
> <target name="build_blah_project">
>   <ant antfile="build_tmpl.xml" >
>     <property name="subproject" value="blah"/>
                                 ^^^^^^^^^^^^^^
>     <property name="src" value="blah/src" />
>     ...
>   </ant>
> </target>
>
> <target name="build_foo_project">
>   <ant antfile="build_tmpl.xml">
>     <property name="subproject" value="foo" />
>     <property name="src" value="foo/src" />
>     ...
>   </ant>
> </target>
YESS! I did it an hour ago (I am really glad that you offered the
solution I already know about). But:
${subproject} is always "blah"! I cannot make ant change it!..
It is always taken only one time - on first "property" tag...
Any ideas?

--
Sergey V. Udaltsov




Mime
View raw message