-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
85 lines (70 loc) · 2.47 KB
/
build.xml
File metadata and controls
85 lines (70 loc) · 2.47 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<project name="Gammon-Bernard Common Lisp" default="dist" basedir=".">
<property file="project.properties"/>
<import file="build-common-versioning.xml"/>
<!-- This path represents all compile-time dependancies -->
<path id="javac.path">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
<exclude name="javacc"/>
</fileset>
</path>
<!-- This path represents all run-time dependancies -->
<path id="java.path">
<path refid="javac.path"/>
<pathelement path="${build.classes.dir}"/>
</path>
<target name="init">
<tstamp/>
</target>
<target name="clean" depends="init">
<delete dir="${build.dir}"/>
<delete dir="${grammar.output.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="compile-parser" depends="init">
<mkdir dir="${grammar.output.dir}"/>
<javacc
target="${grammar.file}"
javacchome="${javacc.home}"
outputdirectory="${grammar.output.dir}"/>
</target>
<target name="compile" depends="compile-parser">
<!-- Make build directory if it does not exist -->
<mkdir dir="${build.classes.dir}"/>
<!-- Compile all sources to build directory -->
<javac
srcdir="${src.dir}"
destdir="${build.classes.dir}"
classpathref="javac.path"
debug="on"
debuglevel="source,vars,lines"/>
</target>
<target name="build" depends="compile,increment-build-number">
<jar
basedir="${build.classes.dir}"
destfile="${build.jar}">
<manifest>
<attribute
name="Main-Class"
value="edu.utexas.cs345.jdblisp.LISPRuntime"/>
<attribute
name="Built-By"
value="Jonathan Bernard (jdbernard@gmail.com)"/>
</manifest>
</jar>
</target>
<target name="dist" depends="build">
<mkdir dir="${dist.dir}/lib"/>
<move file="${build.jar}" tofile="${dist.jar}" />
<copy todir="${dist.dir}/lib">
<fileset dir="${lib.dir}">
<include name="**/*"/>
<exclude name="javacc"/>
</fileset>
</copy>
</target>
<target name="test-static" depends="build">
<java classname="test-static" fork="true" dir=".">
</java>
</target>
</project>