Skip to content

Instantly share code, notes, and snippets.

@rik0
Created January 23, 2011 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rik0/792238 to your computer and use it in GitHub Desktop.
Save rik0/792238 to your computer and use it in GitHub Desktop.
Clojure Buildfile
<?xml version="1.0" encoding="UTF-8"?>
<project name="module_clojure" default="compile.module.clojure">
<dirname property="module.hdsnetsym.basedir" file="${ant.file.module_clojure}"/>
<target name="compile.module.clojure" description="Compile clojure scripts of ...">
<java classname="clojure.lang.Compile">
<classpath>
<path location="${current_module.output.dir}"/>
<path location="${basedir}/../path/to/some.jar"/>
<path location="${basedir}/../../path/to/another/some.jar"/>
<path location="${module.current_module.basedir}/src"/>
<path location="${module.current_module.basedir}/lib/clojure.jar"/>
<!-- path location="${module.current_module.basedir}/clojure-contrib.jar"/ -->
</classpath>
<sysproperty key="clojure.compile.path" value="${current_module.output.dir}"/>
<sysproperty key="java.awt.headless" value="true"/>
<arg value="fully.qualified.name.of.ClassToCompile" />
<arg value="fully.qualified.name.of.AnotherClassToCompile" />
</java>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment