ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Deferring references
Date Mon, 25 Sep 2006 04:27:58 GMT
On Fri, 22 Sep 2006, Peter Reilly <peter.kitt.reilly@gmail.com> wrote:

> I propose that we defer handing id's until the processing
> stage.

Will probably break something like

    <project name="testscript" default="main">
      <target name="sub">
        <echo id="theEcho"/>
      </target>

      <target name="sub1">
        <script language="netrexx"><![CDATA[
          theEcho.setMessage("In sub1")
          sub.execute
        ]]></script>
      </target>

      <target name="sub2">
        <script language="javascript"><![CDATA[
          theEcho.setMessage("In sub2");
          sub.execute();
        ]]></script>
      </target>

      <target name="main" depends="sub1,sub2"/>
    </project>

which is copied straight from the examples for <script> in the Ant
manual for version 1.6.5.

I.e. it breaks something that was documented to work before.  One
could even assume it was a best practice, given it was used in the
manual.

This example predates Ant 1.2 IIRC.

Stefan

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


Mime
View raw message