On 9/25/06, Stefan Bodewig <[EMAIL PROTECTED]> wrote:
On Fri, 22 Sep 2006, Peter Reilly <[EMAIL PROTECTED]> 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.
Yep, this is correct ;-) , I have removed the example from the documentation. 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.
Yep, one may assume it was best practice, but it is not! This example predates Ant 1.2 IIRC. I know, that is why I have raises the reference deferral as a issue. I really cannot see the use-case described by the example. I would not think that there are any examples in the "wild". Deferring the reference handling will fix a lot of bugs that have occuried in the wild, including allowing the <script> task to work without sometimes trashing the build - see: http://issues.apache.org/bugzilla/show_bug.cgi?id=37688 Peter Stefan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]