blob: a2c398827b5313826320f6227a1820b4227cba1c [file] [log] [blame]
<?xml version="1.0"?>
<project name="antlr-test" basedir="." default="test1">
<property name="tmp.dir" location="antlr.tmp"/>
<target name="test1">
<antlr/>
</target>
<target name="test2">
<!-- delete the tmp directory, it may exists if a previous ANTLR test
failed. This in turn will cause this test to fail, as it tests
the build exception when the outputdirectory is invalid. -->
<deltree dir="${tmp.dir}"/>
<antlr target="antlr.g" outputdirectory="${tmp.dir}"/>
</target>
<target name="test3">
<deltree dir="${tmp.dir}"/>
<mkdir dir="${tmp.dir}"/>
<antlr target="antlr.g" outputdirectory="${tmp.dir}"/>
</target>
<target name="test4">
<deltree dir="${tmp.dir}"/>
<mkdir dir="${tmp.dir}"/>
<antlr target="java.g" outputdirectory="${tmp.dir}"/>
<antlr target="java.tree.g" outputdirectory="${tmp.dir}"/>
</target>
<target name="test5">
<antlr target="java.tree.g" outputdirectory="${tmp.dir}" fork="yes"/>
</target>
<target name="test6">
<deltree dir="${tmp.dir}"/>
<!-- This tmp.dir needs to be deleted by the build file which executes this test. -->
<mkdir dir="${tmp.dir}"/>
<antlr target="java.g" outputdirectory="${tmp.dir}" />
<antlr dir="${tmp.dir}"
target="java.tree.g"
outputdirectory="${tmp.dir}"
fork="yes"/>
</target>
<target name="test7">
<antlr target="antlr.xml"/>
</target>
</project>