summaryrefslogtreecommitdiffstats
path: root/test/resources
diff options
context:
space:
mode:
authorpeterkittreilly <[email protected]>2006-10-10 21:07:55 +0000
committerpeterkittreilly <[email protected]>2006-10-10 21:07:55 +0000
commit91c3ef383a9eb92301d40d26634a2f932ae89c6a (patch)
tree339143d66e1f8f8940b9481dabaa40d2b25a6600 /test/resources
parent95e3c277acff9cf454a3842042b9f859731e338b (diff)
add tests for begin/step/end attributes of <for>
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@50 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'test/resources')
-rw-r--r--test/resources/logic/for.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/resources/logic/for.xml b/test/resources/logic/for.xml
new file mode 100644
index 0000000..3c25545
--- /dev/null
+++ b/test/resources/logic/for.xml
@@ -0,0 +1,24 @@
+<project>
+ <target name="init">
+ <taskdef resource="net/sf/antcontrib/antlib.xml">
+ <classpath location="${antcontrib.jar}"/>
+ </taskdef>
+ </target>
+
+ <target name="loop" depends="init">
+ <for param="i" end="10">
+ <sequential>
+ <echo>i is @{i}</echo>
+ </sequential>
+ </for>
+ </target>
+
+ <target name="step" depends="init">
+ <for param="i" end="0" begin="10" step="-2">
+ <sequential>
+ <echo>i is @{i}</echo>
+ </sequential>
+ </for>
+ </target>
+
+</project>