donaldp 02/03/23 01:08:11
Modified: proposal/myrmidon/src/make sample.ant
Log:
showed a few uses of ant to make sure it works,
Really should unit-test this
Revision Changes Path
1.37 +33 -0 jakarta-ant/proposal/myrmidon/src/make/sample.ant
Index: sample.ant
===================================================================
RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/make/sample.ant,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- sample.ant 15 Feb 2002 07:32:30 -0000 1.36
+++ sample.ant 23 Mar 2002 09:08:11 -0000 1.37
@@ -250,4 +250,37 @@
</filtered-copy>
</target>
+ <target name="ant-test">
+ <!-- test elided until we decide scope and necessity of ant-call -->
+ <log message="Testing ant task..."/>
+ <ant file="sample.ant" target="if-test"/>
+
+ <log message="Using params..."/>
+ <ant file="sample.ant" target="prop-print">
+ <param name="meep.meep" value="Meep!"/>
+ </ant>
+
+ <log message="Using params value-ref..."/>
+ <pattern id="meep.data" name="*.java" if="..." />
+ <ant file="sample.ant" target="prop-print">
+ <param name="meep.meep" value-ref="meep.data"/>
+ </ant>
+
+ <log message="Using inheritall..."/>
+ <pattern id="meep.meep" name="*.java" if="..." />
+ <ant file="sample.ant" target="prop-print" inherit-all="true"/>
+
+ <!--
+ <log message="Fail as no define property..."/>
+ <ant file="sample.ant" target="prop-print"/>
+ -->
+
+ <log message="Fail as no build.ant file in correct place..."/>
+ <ant/>
+ </target>
+
+ <target name="prop-print">
+ <log message="Give me a property ... ${meep.meep}"/>
+ </target>
+
</project>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>