-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
50 lines (43 loc) · 1.5 KB
/
build.xml
File metadata and controls
50 lines (43 loc) · 1.5 KB
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
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8"?>
<project name="BasicMigration" default="compile" basedir=".">
<target name="init" description="Initialize variables and path">
<property name="src.dir" value="src"/>
<property name="java-gen.dir" value="java-gen"/>
<property name="build.dir" value="build"/>
<property name="datastructure-impl.dir" value="${src.dir}/datastructure-impl"/>
<property name="mainclass" value="BasicParser"/>
<path id="project.classpath">
<pathelement location="${build.dir}"/>
</path>
</target>
<target name="run" depends="compile">
<java fork="true" classpathref="project.classpath" classname="${mainclass}"/>
</target>
<target name="compile" depends="BasicParserJJ">
<mkdir dir="${build.dir}"/>
<javac srcdir="${java-gen.dir}"
destdir="${build.dir}"
classpathref="project.classpath" />
</target>
<target name="BasicParserJJ" depends="BasicParserJJT">
<exec executable="javacc">
<arg line="${java-gen.dir}/BasicParser.jj"/>
</exec>
</target>
<target name="BasicParserJJT" depends="init">
<copy todir="${java-gen.dir}">
<fileset dir="${datastructure-impl.dir}">
<include name="**/*.java"/>
</fileset>
</copy>
<exec executable="jjtree">
<arg line="${src.dir}/BasicParser.jjt"/>
</exec>
</target>
<target name="clean" depends="init">
<delete includeemptydirs="true">
<fileset dir="${build.dir}"/>
<fileset dir="${java-gen.dir}"/>
</delete>
</target>
</project>