-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
38 lines (35 loc) · 1.26 KB
/
build.xml
File metadata and controls
38 lines (35 loc) · 1.26 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
<project name="lispi" default="jar">
<!-- directory / file definition -->
<property name="source_dir" value="src" />
<property name="build_dir" value="build" />
<property name="jar_file" value="lisp.jar"/>
<!-- ================================== -->
<!-- BUILD -->
<!-- ================================== -->
<target name="build">
<mkdir dir="${build_dir}" />
<javac encoding="utf-8" srcdir="${source_dir}" destdir="${build_dir}" debug="on" target="1.8" source="1.8" includeantruntime="false">
<include name="**/*.java" />
<compilerarg value="-Xlint:deprecation" />
<compilerarg value="-Xlint:unchecked" />
</javac>
</target>
<!-- ================================== -->
<!-- GENERATE JAR -->
<!-- ================================== -->
<target name="jar" depends="build">
<jar jarfile="${jar_file}">
<fileset dir="${build_dir}" includes="**/*.class" />
<manifest>
<attribute name="Main-Class" value="VMLisp.Main" />
</manifest>
</jar>
</target>
<!-- ================================== -->
<!-- CLEAN -->
<!-- ================================== -->
<target name="clean">
<delete dir="${build_dir}"/>
<delete file="${jar_file}"/>
</target>
</project>