]> git.saurik.com Git - redis.git/blob - client-libraries/clojure/build.xml
initial multi-bulk query protocol, this will allow MSET and other interesting features.
[redis.git] / client-libraries / clojure / build.xml
1 <project name="redis" default="jar">
2 <description>
3 Redis client library for Clojure.
4 </description>
5
6 <property file="build.properties"/>
7
8 <property name="dist.dir" location="dist"/>
9 <property name="build.dir" location="classes"/>
10 <property name="lib.dir" location="lib"/>
11 <property name="source.dir" location="src"/>
12
13 <property name="redis-clojure.jar" location="redis-clojure.jar"/>
14
15 <target name="clean" description="Remove generated files">
16 <delete file="redis-clojure.jar"/>
17 <delete dir="${build.dir}"/>
18 </target>
19
20 <target name="init" depends="clean">
21 <tstamp/>
22 <mkdir dir="${build.dir}"/>
23 </target>
24
25 <target name="compile" depends="init" description="Compile sources">
26 <java classname="clojure.lang.Compile">
27 <classpath>
28 <path location="${build.dir}"/>
29 <path location="${source.dir}"/>
30 <path location="${clojure.jar}"/>
31 <path location="${clojure-contrib.jar}"/>
32 </classpath>
33 <sysproperty key="clojure.compile.path" value="${build.dir}"/>
34 <arg value="redis" />
35 </java>
36 </target>
37
38 <target name="jar" description="Create jar file" depends="compile">
39 <jar jarfile="${redis-clojure.jar}">
40 <path location="LICENSE"/>
41 <!--<fileset dir="${source.dir}" includes="**/*.clj"/>-->
42 <fileset dir="${build.dir}" includes="**/*.class"/>
43 <manifest>
44 <attribute name="Built-By" value="${user.name}"/>
45 </manifest>
46 </jar>
47 </target>
48
49 <target name="test" description="Run tests">
50 <java classname="clojure.main">
51 <classpath>
52 <path location="${source.dir}"/>
53 <path location="${clojure.jar}"/>
54 <path location="${clojure-contrib.jar}"/>
55 </classpath>
56 <arg value="-e" />
57 <arg value="(require 'redis.tests 'redis.tests.internal) (clojure.contrib.test-is/run-tests 'redis.tests 'redis.tests.internal)" />
58 </java>
59 </target>
60
61 <target name="bm" depends="benchmark"/>
62
63 <target name="benchmark" description="Run benchmark">
64 <java classname="clojure.main">
65 <classpath>
66 <path location="${basedir}"/>
67 <path location="${source.dir}"/>
68 <!--<path location="${redis-clojure.jar}"/>-->
69 <path location="${clojure.jar}"/>
70 <path location="${clojure-contrib.jar}"/>
71 </classpath>
72 <arg value="-e" />
73 <arg value="(require 'benchmarks.clojure) (benchmarks.clojure/run-all-benchmarks 'benchmarks.clojure)" />
74 </java>
75 </target>
76
77 <target name="benchmark-ruby" description="Run benchmark equivalent to the benchmarks of the Ruby library">
78 <java classname="clojure.main">
79 <classpath>
80 <path location="${basedir}"/>
81 <path location="${source.dir}"/>
82 <!--<path location="${redis-clojure.jar}"/>-->
83 <path location="${clojure.jar}"/>
84 <path location="${clojure-contrib.jar}"/>
85 </classpath>
86 <arg value="-e" />
87 <arg value="(require 'benchmarks.ruby)" />
88 </java>
89 </target>
90
91 </project>