> files? It seems tedious to have to add ":gen-class" to the source
> file, start a REPL, and enter a compile form.

The :gen-class is only needed if you want to generate a Java class of
a certain stripe. It's not required for AOT compilation in general.

It seems most projects do it with an ant target something like this:

  <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>


-- 
http://elhumidor.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
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