ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [embed] few changes in xml processing
Date Tue, 15 Oct 2002 06:17:35 GMT
On Mon, 14 Oct 2002, Costin Manolache <cmanolache@yahoo.com> wrote:

> I think I found the real problem - Echo is calling 
> Project.replaceProperties() in addText(), but since properties
> are evaluated later this will fail.

Hmm?

[bodewig@bodewig jakarta-ant]$ cat > /tmp/echo.xml
<project default="foo">
  <target name="foo">
    <property name="bar" value="baz"/>
    <echo>${bar}</echo>
  </target>
</project>
[bodewig@bodewig jakarta-ant]$ ant -f /tmp/echo.xml 
Buildfile: /tmp/echo.xml

foo:
     [echo] baz

BUILD SUCCESSFUL
Total time: 1 second

what is the problem?  This works with Ant 1.5.1 and CVS HEAD.

The problem is the load of tasks that do not expand properties
themselves - or taken the other way around, that IntrospectionHelper
hasn't done so to begin with.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message