Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 63 lines (51 sloc) 2.077 kb
b307819 Add ant build script.
Richard Newman authored
1 <project name="clj-mql" default="jar">
2
3 <!-- Override these with -Dclojure.jar=... in your Ant invocation. -->
4 <property name="clojure.jar" location="/opt/clojure/clojure.jar"/>
5 <property name="clojure.contrib.jar" location="/opt/clojure-contrib/clojure-contrib.jar"/>
6
7 <available property="hasclojure" file="${clojure.jar}"/>
8
9 <!-- Library. -->
10 <property name="src" location="src"/>
11 <property name="lib" location="lib"/>
12 <property name="build" location="classes"/>
13 <property name="jarfile" location="clj-mql.jar"/>
14 <property name="deploy" location="deploy"/>
15
16 <target name="init">
17 <tstamp/>
18 <mkdir dir="${build}"/>
19 <mkdir dir="${deploy}"/>
20 </target>
21
22 <target name="clean" description="Remove generated files and directories.">
23 <delete dir="${deploy}"/>
24 <delete dir="${build}"/>
25 <delete file="${jarfile}"/>
26 </target>
27
28 <target name="compile_clojure" depends="init"
29 description="Compile Clojure sources."
30 if="hasclojure">
31 <java classname="clojure.lang.Compile">
32 <classpath>
33 <path location="${src}"/>
34 <path location="${build}"/>
35
36 <path location="${lib}/commons-logging-1.1.1.jar"/>
648d247 @rnewman Bump dependencies.
authored
37 <path location="${lib}/httpclient-4.0.1.jar"/>
38 <path location="${lib}/httpcore-4.0.1.jar"/>
39 <path location="${lib}/httpmime-4.0.1.jar"/>
b307819 Add ant build script.
Richard Newman authored
40
41 <path location="${lib}/clj-apache-http.jar"/>
42 <path location="${lib}/clojure-json.jar"/>
43
44 <path location="${clojure.jar}"/>
45 <path location="${clojure.contrib.jar}"/>
46 </classpath>
47
48 <sysproperty key="clojure.compile.path" value="${build}"/>
49 <arg value="com.twinql.clojure.mql"/>
50 </java>
51 </target>
52
53 <target name="jar" description="Create jar file." depends="compile_clojure">
54 <jar jarfile="${jarfile}">
55 <!-- <fileset dir="${src}" includes="**/*.clj"/> -->
56 <fileset dir="${build}" includes="**/*.class"/>
57 <manifest>
58 <attribute name="Class-Path" value="."/>
59 </manifest>
60 </jar>
61 </target>
62 </project>
Something went wrong with that request. Please try again.