|
|
@@ -10,21 +10,15 @@ |
|
|
|
</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}"/> |
|
|
@@ -35,8 +29,6 @@ |
|
|
|
</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}" |
|
|
@@ -49,4 +41,8 @@ |
|
|
|
<antlr target="antlr.xml"/> |
|
|
|
</target> |
|
|
|
|
|
|
|
<target name="cleanup"> |
|
|
|
<delete dir="${tmp.dir}" /> |
|
|
|
</target> |
|
|
|
|
|
|
|
</project> |