I am using the method proposed in this answer to compile Clojure *.clj
files to *.class
(and subsequently jar them), using more or less the structure of the compile-clojure
target from the build.xml
file that's found at the root of the Clojure distribution (e.g. in clojure-1.5.1.zip
). In my case:
<java classname="clojure.lang.Compile"
failonerror="true"
fork="true">
<classpath refid="compile.classpath"/>
<sysproperty key="clojure.compile.path" value="${cljbuild.dir}"/>
<arg value="${project.MainClass.name}"/>
</java>
The problem with this approach is that it keeps compiling the *.clj
files even though they haven't changed. Any ways around this?