-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.xml
51 lines (42 loc) · 1.5 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
<project name="clj-git" default="jar">
<property name="clojure.jar" location="/opt/clojure/clojure.jar"/>
<property name="clojure.contrib.jar" location="/opt/clojure-contrib/clojure-contrib.jar"/>
<available property="hasclojure" file="${clojure.jar}"/>
<property name="src" location="src"/>
<property name="base.build" location="classes"/>
<property name="base.jarfile" location="clj-git.jar"/>
<path id="baselibs.path">
<!-- Clojure. -->
<path location="${clojure.jar}"/>
<path location="${clojure.contrib.jar}"/>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${base.build}"/>
</target>
<target name="clean" description="Remove generated files and directories.">
<delete dir="${base.build}"/>
<delete file="${base.jarfile}"/>
</target>
<target name="compile_clojure" depends="init"
description="Compile Clojure sources."
if="hasclojure">
<java classname="clojure.lang.Compile">
<classpath>
<path location="${base.build}"/>
<path location="${src}"/>
<path refid="baselibs.path"/>
</classpath>
<sysproperty key="clojure.compile.path" value="${base.build}"/>
<arg value="com.twinql.clojure.git"/>
</java>
</target>
<target name="jar" depends="compile_clojure">
<jar jarfile="${base.jarfile}">
<fileset dir="${base.build}" includes="**/*.class"/>
<manifest>
<attribute name="Class-Path" value="."/>
</manifest>
</jar>
</target>
</project>