>   <target name="compile" depends="init">
>     <java classname="clojure.lang.Compile"
> classpathref="project.classpath" failonerror="true">
>       <classpath path="${src.dir}" />
>       <sysproperty key="clojure.compile.path" value="${classes.dir}" />
>       <arg value="com.example.whatever.namespace.to.compile" />
>     </java>
>   </target>
>

I use this little ant task http://pastebin.com/f34ecde83, with it you
can rewrite your compile target as:
<target name='compile' depends='init'>
    <clojurec srcdir='${src.dir}' destdir='${classes.dir}'/>
</target>

It supports 'classpath' and 'classpathref' attributes like javac and
will try to find all .clj files that have (ns ..) in theme, so it can
avoid compilation of files that are imported with load directive.
Note: It will add srcdir and destdir to classpath for you.

--
Krešimir Šojat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to