1 <project name=
"redis" default=
"jar">
3 Redis client library for Clojure.
6 <property file=
"build.properties"/>
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"/>
13 <property name=
"redis-clojure.jar" location=
"redis-clojure.jar"/>
15 <target name=
"clean" description=
"Remove generated files">
16 <delete file=
"redis-clojure.jar"/>
17 <delete dir=
"${build.dir}"/>
20 <target name=
"init" depends=
"clean">
22 <mkdir dir=
"${build.dir}"/>
25 <target name=
"compile" depends=
"init" description=
"Compile sources">
26 <java classname=
"clojure.lang.Compile">
28 <path location=
"${build.dir}"/>
29 <path location=
"${source.dir}"/>
30 <path location=
"${clojure.jar}"/>
31 <path location=
"${clojure-contrib.jar}"/>
33 <sysproperty key=
"clojure.compile.path" value=
"${build.dir}"/>
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"/>
44 <attribute name=
"Built-By" value=
"${user.name}"/>
49 <target name=
"test" description=
"Run tests">
50 <java classname=
"clojure.main">
52 <path location=
"${source.dir}"/>
53 <path location=
"${clojure.jar}"/>
54 <path location=
"${clojure-contrib.jar}"/>
57 <arg value=
"(require 'redis.tests 'redis.tests.internal) (clojure.contrib.test-is/run-tests 'redis.tests 'redis.tests.internal)" />
61 <target name=
"bm" depends=
"benchmark"/>
63 <target name=
"benchmark" description=
"Run benchmark">
64 <java classname=
"clojure.main">
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}"/>
73 <arg value=
"(require 'benchmarks.clojure) (benchmarks.clojure/run-all-benchmarks 'benchmarks.clojure)" />
77 <target name=
"benchmark-ruby" description=
"Run benchmark equivalent to the benchmarks of the Ruby library">
78 <java classname=
"clojure.main">
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}"/>
87 <arg value=
"(require 'benchmarks.ruby)" />