-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
67 lines (58 loc) · 1.93 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
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="test" basedir="." default="build">
<target name="mkdirs">
<mkdir dir="classes"/>
<mkdir dir="build"/>
</target>
<target name="build" depends="clean, mkdirs, compile, jar" />
<target name="clean">
<delete dir="classes" />
</target>
<target name="distclean" depends="clean" description="clean distribution">
<delete dir="build"/>
<delete file="inkboard.jar"/>
</target>
<target name="compile" description="Run the Clojure Compiler" depends="mkdirs">
<java classname="clojure.lang.Compile" fork="true">
<sysproperty key="clojure.compile.path" value="classes" />
<classpath>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
<dirset dir="classes"/>
<dirset dir="src"/>
</classpath>
<arg value="net.inkcode.inkboard" />
</java>
</target>
<target name="jar" depends="compile">
<jar destfile="build/inkboard.jar"
basedir="."
includes="classes/**/*.class">
<manifest>
<attribute name="Main-Class" value="net.inkcode.inkboard" />
<attribute name="Class-Path" value="." />
</manifest>
<fileset dir="classes" includes="**/*.class"/>
<zipfileset src="lib/clojure-1.2/clojure.jar"/>
<zipfileset src="lib/clojure-1.2/clojure-contrib.jar"/>
<zipfileset src="lib/jpen-2/jpen-2.jar"/>
</jar>
</target>
<target name="dist" depends="distclean, build">
<copy todir="build">
<fileset dir="lib/jpen-2">
<include name="*.so"/>
<include name="*.dll"/>
<include name="*.jnilib"/>
</fileset>
</copy>
<mkdir dir="build/images"/>
<copy todir="build/images">
<fileset dir="images"/>
</copy>
</target>
<target name="run" depends="dist" description="Run the application">
<java fork="true" dir="build" jar="build/inkboard.jar"/>
</target>
</project>