-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.xml
40 lines (33 loc) · 1.12 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<project name="dprogramming" default="check_antlr" basedir=".">
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile" depends="clean">
<mkdir dir="build/classes"/>
<javac srcdir="src" destdir="build/classes">
<classpath>
<pathelement path="lib/antlr-4.5-complete.jar"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile,compile_grammar">
<jar destfile="RankPL.jar" basedir="build/classes">
<manifest>
<attribute name="Main-Class" value="com.tr.rp.RankPL"/>
</manifest>
<zipgroupfileset dir="lib" includes="*.jar"/>
</jar>
</target>
<target name="run" depends="jar">
<java jar="RPL.jar" fork="true"/>
</target>
<path id="classpath">
<pathelement location="lib/antlr-4.5-complete.jar" />
</path>
<target name="compile_grammar">
<java classname="org.antlr.v4.Tool" classpathref="classpath" fork="true" failonerror="true">
<arg path="src/com/tr/rp/parser/DefProg.g"/>
<arg value="-visitor"/>
</java>
</target>
</project>