Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

69 lines (62 sloc) 2.176 kb
<project name="compojure" default="jar">
<description>
Compojure library package.
</description>
<property name="build.dir" location="classes"/>
<property name="deps.dir" location="deps"/>
<property name="source.dir" location="src"/>
<property name="compojure.jar" location="compojure.jar"/>
<target name="clean" description="Remove generated files">
<delete file="${compojure.jar}"/>
<delete dir="${build.dir}"/>
</target>
<target name="init" depends="clean">
<tstamp/>
<mkdir dir="${build.dir}"/>
</target>
<target name="compile" depends="init" description="Compile sources">
<java classname="clojure.lang.Compile">
<classpath>
<path location="${build.dir}"/>
<path location="${source.dir}"/>
<fileset dir="${deps.dir}">
<include name="*.jar"/>
</fileset>
</classpath>
<sysproperty key="clojure.compile.path" value="${build.dir}"/>
<arg value="compojure"/>
<arg value="compojure.control"/>
<arg value="compojure.file-utils"/>
<arg value="compojure.html"/>
<arg value="compojure.http"/>
<arg value="compojure.http.routes"/>
<arg value="compojure.http.servlet"/>
<arg value="compojure.http.helpers"/>
<arg value="compojure.ns-utils"/>
<arg value="compojure.server.jetty"/>
<arg value="compojure.json"/>
<arg value="compojure.str-utils"/>
<arg value="compojure.validation"/>
</java>
</target>
<target name="jar" description="Create jar file" depends="compile">
<jar jarfile="${compojure.jar}">
<path location="LICENSE"/>
<fileset dir="${source.dir}" includes="**/*.clj"/>
<fileset dir="${build.dir}" includes="**/*.class"/>
</jar>
</target>
<target name="test" description="Run Compojure unit tests">
<java classname="clojure.lang.Script">
<arg value="test/test.clj"/>
<classpath>
<path location="."/>
<path location="${source.dir}"/>
<path location="${deps.dir}"/>
<fileset dir="${deps.dir}">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.