Ant build.xml: Move mkdir task to antlr3 target, where the grammars are actually compiled

This commit is contained in:
Sam Harwell 2013-01-06 15:20:20 -06:00
parent dfb2143077
commit 4d3da87119
1 changed files with 2 additions and 2 deletions

View File

@ -15,9 +15,7 @@
<get src="http://antlr.org/download/${antlr3.jar.name}" dest="${antlr3.jar}" skipexisting="true"/>
<path id="cp.antlr3" path="${antlr3.jar}"/>
<!-- Create the build directory structure used by compile -->
<property name="build.antlr3.dir" value="${build.dir}/generated-sources/antlr3" />
<mkdir dir="${build.antlr3.dir}" />
</target>
<target name="build-init" depends="basic-init">
@ -37,6 +35,8 @@
</target>
<target name="antlr3" depends="build-init,antlr3-init">
<mkdir dir="${build.antlr3.dir}" />
<echo>parse grammars</echo>
<java classname="org.antlr.Tool" fork="true" failonerror="true" maxmemory="300m"
dir="${basedir}/tool/src/org/antlr/v4/parse">