|
|
@@ -218,43 +218,6 @@ main: |
|
|
|
81 |
|
|
|
100 |
|
|
|
|
|
|
|
BUILD SUCCESSFUL |
|
|
|
</pre></blockquote> |
|
|
|
<p>Another example, using <a href="../using.html#references">references by id</a> |
|
|
|
and two different scripting languages:</p> |
|
|
|
<blockquote><pre> |
|
|
|
<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> |
|
|
|
</pre></blockquote> |
|
|
|
<p>generates</p> |
|
|
|
<blockquote><pre> |
|
|
|
sub1: |
|
|
|
In sub1 |
|
|
|
|
|
|
|
sub2: |
|
|
|
In sub2 |
|
|
|
|
|
|
|
main: |
|
|
|
|
|
|
|
BUILD SUCCESSFUL |
|
|
|
</pre></blockquote> |
|
|
|
|
|
|
@@ -330,9 +293,5 @@ Finally we use the <code><echo></code> task for producing the output. The |
|
|
|
its execute() method, because the perform() method (implemented in Task itself) does the |
|
|
|
appropriate logging before and after invoking execute(). |
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body> |
|
|
|
</html> |