Source

lazymap / build.xml

Full commit
<project name="lazymap" default="jar">

	<description>
		Build with "ant jar".
	</description>

	<property environment="env"/>

	<property name="src" location="src"/>
	<property name="build" location="classes"/>
	<property name="lazymap_jar" location="lazymap.jar"/>
	<property file="local.properties"/>

	<target name="init" depends="clean">
		<tstamp/>
		<mkdir dir="${build}"/>
	</target>

	<target name="aot" depends="init"
		description="Compile Clojure sources.">
		<java classname="clojure.lang.Compile">
			<classpath>
				<pathelement location="${build}"/>
				<pathelement location="${src}"/>
				<pathelement location="${clojure.jar}"/>
			</classpath>
			<sysproperty key="clojure.compile.path" value="${build}"/>
			<arg value="de.kotka.lazymap.LazyMapEntry"/>
			<arg value="de.kotka.lazymap.LazyMapSeq"/>
			<arg value="de.kotka.lazymap.LazyMap"/>
			<arg value="de.kotka.lazymap"/>
		</java>
	</target>

	<target name="jar" depends="aot"
		description="Create jar file.">
		<jar jarfile="${lazymap_jar}" basedir="${build}">
			<fileset file="README.txt"/>
			<fileset file="LICENSE.txt"/>
			<fileset dir="${src}" includes="**/*.clj"/>
			<fileset dir="${build}" includes="de/kotka/**/*.class"/>
			<manifest>
				<attribute name="Class-Path" value="."/>
			</manifest>
		</jar>
	</target>

	<target name="clean"
		description="Remove autogenerated files and directories.">
		<delete dir="${build}"/>
		<delete file="${lazymap_jar}"/>
	</target>

</project>
<!-- vim: set ts=4 : -->