Ant build.xml: Move mkdir task to antlr3 target, where the grammars are actually compiled
This commit is contained in:
parent
dfb2143077
commit
4d3da87119
|
@ -15,9 +15,7 @@
|
||||||
<get src="http://antlr.org/download/${antlr3.jar.name}" dest="${antlr3.jar}" skipexisting="true"/>
|
<get src="http://antlr.org/download/${antlr3.jar.name}" dest="${antlr3.jar}" skipexisting="true"/>
|
||||||
<path id="cp.antlr3" path="${antlr3.jar}"/>
|
<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" />
|
<property name="build.antlr3.dir" value="${build.dir}/generated-sources/antlr3" />
|
||||||
<mkdir dir="${build.antlr3.dir}" />
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build-init" depends="basic-init">
|
<target name="build-init" depends="basic-init">
|
||||||
|
@ -37,6 +35,8 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="antlr3" depends="build-init,antlr3-init">
|
<target name="antlr3" depends="build-init,antlr3-init">
|
||||||
|
<mkdir dir="${build.antlr3.dir}" />
|
||||||
|
|
||||||
<echo>parse grammars</echo>
|
<echo>parse grammars</echo>
|
||||||
<java classname="org.antlr.Tool" fork="true" failonerror="true" maxmemory="300m"
|
<java classname="org.antlr.Tool" fork="true" failonerror="true" maxmemory="300m"
|
||||||
dir="${basedir}/tool/src/org/antlr/v4/parse">
|
dir="${basedir}/tool/src/org/antlr/v4/parse">
|
||||||
|
|
Loading…
Reference in New Issue