Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (50 sloc) 1.8 KB
<project name="clj-ds" default="jar">
<property name="src" location="src" />
<property name="build" location="classes" />
<property name="dist" location="dist" />
<property name="lib" location="lib" />
<property name="test-src" location="test" />
<property name="build-test" location="testclasses" />
<target name="clean" description="Remove autogenerated files and directories.">
<delete dir="${build}" />
<delete dir="${dist}" />
<delete dir="${build-test}" />
</target>
<target name="init">
<tstamp />
<mkdir dir="${build}" />
<mkdir dir="${build-test}" />
<mkdir dir="${dist}" />
</target>
<target name="compile" depends="init" description="Compile Java sources.">
<javac srcdir="${src}" destdir="${build}" includeJavaRuntime="yes" target="1.5" />
</target>
<target name="jar" depends="compile">
<jar jarfile="${dist}/clj-ds.jar" basedir="${build}">
</jar>
</target>
<target name="compile-tests" depends="jar" description="Compile Test sources.">
<javac srcdir="${test-src}" destdir="${build-test}" includeJavaRuntime="yes" target="1.5">
<classpath>
<pathelement location="${lib}/junit-4.8.2.jar" />
<pathelement location="${dist}/clj-ds.jar" />
</classpath>
</javac>
</target>
<target name="jartest" depends="compile-tests">
<jar jarfile="${dist}/clj-ds-test.jar" basedir="${build-test}">
</jar>
</target>
<target name="test" depends="jartest">
<echo>Note: the tests take some time (about 5-10 minutes to run). Be patient.</echo>
<junit>
<classpath>
<pathelement location="${lib}/junit-4.8.2.jar" />
<pathelement location="${dist}/clj-ds.jar" />
<pathelement location="${dist}/clj-ds-test.jar" />
</classpath>
<formatter type="plain" usefile="false" />
<test name="com.trifork.clj_ds.test.AllTests" />
</junit>
</target>
</project>