Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3fa994ed71
Fetching contributors…

Cannot retrieve contributors at this time

file 79 lines (57 sloc) 2.045 kb
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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
<project name="cupboard" default="package">


  <property file="version.properties"/>


  <property name="repository.oracle" value="http://download.oracle.com/maven"/>
  <property name="repository.maven" value="http://mirrors.ibiblio.org/pub/mirrors/maven2"/>


  <target name="init">
    <mkdir dir="lib"/>
    <mkdir dir="classes"/>
  </target>


  <target name="distclean" depends="clean">
    <delete dir="lib"/>
  </target>


  <target name="clean">
    <delete>
      <fileset dir="." includes="*.jar"/>
    </delete>
    <delete dir="classes"/>
  </target>


  <target name="deps" depends="init">
    <get src="${repository.maven}/org/clojure/clojure/1.3.0/clojure-1.3.0.jar"
         dest="lib/clojure-1.3.0.jar" usetimestamp="true"/>
    <get src="${repository.maven}/joda-time/joda-time/1.6.2/joda-time-1.6.2.jar"
         dest="lib/joda-time-1.6.2.jar" usetimestamp="true"/>
    <get src="${repository.oracle}/com/sleepycat/je/4.0.92/je-4.0.92.jar"
         dest="lib/je-4.0.92.jar" usetimestamp="true"/>
  </target>


  <target name="classpath" depends="deps">
    <path id="classpath">
      <fileset dir="lib">
        <include name="**/*.jar"/>
      </fileset>
      <pathelement location="src"/>
      <pathelement location="classes"/>
      <pathelement location="test"/>
    </path>
  </target>


  <target name="compile" depends="classpath">
    <java classname="clojure.lang.Compile"
          classpathref="classpath">
      <sysproperty key="clojure.compile.path" value="classes"/>
      <arg value="cupboard.bdb.je"/>
      <arg value="cupboard.core"/>
      <arg value="test.test-all"/>
    </java>
  </target>


  <target name="package" depends="compile">
    <jar jarfile="cupboard-${version}.jar">
      <path location="LICENSE"/>
      <fileset dir="src" includes="cupboard/**"/>
      <fileset dir="classes" excludes="test/**"/>
    </jar>
  </target>


  <target name="test" depends="compile">
    <java classname="test.test_all"
          fork="true"
          classpathref="classpath"/>
  </target>


</project>
Something went wrong with that request. Please try again.