1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-09 18:15:23 +02:00
cdt/qt/org.eclipse.cdt.qt.qml.core/build.xml

42 lines
1.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<project name="project" default="build">
<description>
Build file to generate the ANTLR 4 parsers and lexers
</description>
<target name="getAntlr">
<get src="http://www.antlr.org/download/antlr-4.5.1-complete.jar" dest="antlr-4.5.1-complete.jar" skipexisting="true"/>
<get src="http://www.antlr.org/download/antlr-runtime-4.5.1.jar" dest="antlr-runtime-4.5.1.jar" skipexisting="true"/>
<get src="https://github.com/antlr/antlr4/archive/4.5.1.zip" dest="antlr-4.5.1.zip" skipexisting="true"/>
</target>
<target name="build" depends="getAntlr">
<java classname="org.antlr.v4.Tool" fork="true">
<classpath>
<pathelement location="antlr-4.5.1-complete.jar"/>
<pathelement path="${java.class.path}"/>
</classpath>
<arg value="-o"/>
<arg value="src-gen/org/eclipse/cdt/qt/qml/core/parser"/>
<arg value="-package"/>
<arg value="org.eclipse.cdt.qt.qml.core.parser"/>
<arg value="ECMAScript.g4"/>
</java>
<java classname="org.antlr.v4.Tool" fork="true">
<classpath>
<pathelement location="antlr-4.5.1-complete.jar"/>
<pathelement path="${java.class.path}"/>
</classpath>
<arg value="-o"/>
<arg value="src-gen/org/eclipse/cdt/qt/qml/core/parser"/>
<arg value="-package"/>
<arg value="org.eclipse.cdt.qt.qml.core.parser"/>
<arg value="QML.g4"/>
</java>
</target>
<target name="clean">
</target>
</project>