-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.xml
39 lines (32 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
<?xml version="1.0"?>
<project name="clojure-json" default="jar">
<description>
Compile clojure-json into a Java JAR.
</description>
<property name="src" location="src" />
<property name="build" location="build/classes" />
<property name="jarfile" location="clojure-json.jar" />
<available property="hasclojure" file="${clojure.jar}" />
<target name="init">
<mkdir dir="build/classes" />
</target>
<target name="compile" depends="init" if="hasclojure">
<java classname="clojure.lang.Compile"
classpath="${src}:${build}:${clojure.jar}">
<sysproperty key="clojure.compile.path" value="${build}" />
<arg value="org.danlarkin.json.encoder" />
<arg value="org.danlarkin.json.decoder" />
<arg value="org.danlarkin.json" />
</java>
</target>
<target name="jar" depends="compile">
<jar jarfile="${jarfile}" basedir="${build}">
<path location="LICENSE" />
<fileset dir="${src}" includes="**/*.clj" />
<fileset dir="${build}" includes="**/*.class" />
</jar>
</target>
<target name="clean">
<delete dir="build" />
</target>
</project>