On Jul 24, 10:30 am, Deklan <diete...@gmail.com> wrote:
> I have scoured the online documentation for instructions on how to
> compile clojure source files from the command line.

It's not often used, but you can run the class clojure.lang.Compile.
You have to set the Java system property "clojure.compile.path" to a
directory where you want the compiled .class files.  That directory
must also be on the Java classpath.  So if your class directory is
called "classes", the full command line looks something like this (all
on one line):

java -cp classes:clojure.jar
  -Dclojure.compile.path=classes
  clojure.lang.Compile
  your.namespace.name

Note that your compiled .class file will still need clojure.jar on the
classpath in order to run.  Clojure cannot compile files that run
independently of the Clojure runtime.

You can see an example in the build.xml file for clojure-contrib.

-Stuart Sierra
--~--~---------~--~----~------------~-------~--~----~
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
Note that posts from new members are moderated - please be patient with your 
first post.
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