]> git.saurik.com Git - redis.git/blame_incremental - client-libraries/clojure/build.xml
Redis release candidate 1
[redis.git] / client-libraries / clojure / build.xml
... / ...
CommitLineData
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="${clojure.jar}"/>
69 <path location="${clojure-contrib.jar}"/>
70 </classpath>
71 <arg value="-e" />
72 <arg value="(require 'benchmarks.clojure) (benchmarks.clojure/run-all-benchmarks 'benchmarks.clojure)" />
73 </java>
74 </target>
75
76 <target name="benchmark-ruby" description="Run benchmark equivalent to the benchmarks of the Ruby library">
77 <java classname="clojure.main">
78 <classpath>
79 <path location="${basedir}"/>
80 <path location="${source.dir}"/>
81 <!--<path location="${redis-clojure.jar}"/>-->
82 <path location="${clojure.jar}"/>
83 <path location="${clojure-contrib.jar}"/>
84 </classpath>
85 <arg value="-e" />
86 <arg value="(require 'benchmarks.ruby)" />
87 </java>
88 </target>
89
90</project>