Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (46 sloc) 1.62 KB
<project name="fact" default="jar">
<description>
Pack all fact sources into a JAR. Compile those that can be compiled
standalone if the clojure.jar property points us to clojure.jar .
</description>
<available property="hasclojure" file="${clojure.jar}"/>
<property name="build.dir" location="classes"/>
<property name="source.dir" location="src"/>
<property name="fact.jar" location="fact.jar"/>
<target name="clean" description="Remove generated files">
<delete file="${fact.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"
if="hasclojure">
<java classname="clojure.lang.Compile">
<classpath>
<path location="${build.dir}"/>
<path location="${source.dir}"/>
<path location="${clojure.jar}"/>
<path location="${clojure-contrib.jar}"/>
</classpath>
<sysproperty key="clojure.compile.path" value="${build.dir}"/>
<arg value="fact.core"/>
<arg value="fact.main"/>
<arg value="fact.random-utils"/>
<arg value="fact.stub"/>
<arg value="fact.output.verbose"/>
<arg value="fact.output.color"/>
<arg value="fact.output.quiet"/>
</java>
</target>
<target name="jar" description="Create jar file" depends="compile">
<jar jarfile="${fact.jar}">
<path location="LICENSE"/>
<fileset dir="${source.dir}" includes="**/*.clj"/>
<fileset dir="${build.dir}" includes="**/*.class"/>
</jar>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.