Oh, to make sure I answered your direct questions:

> increases. So the question is: what are the different ways that one
> can run or package up a Clojure/Java program, so that it is invoked by
> running a shell (or DOS cmd) script?

Compile the clojure files (or not) and package them in a .jar.
I typically leave a bootstrap.clj file in the jar as well (regardless
of compilation) to perform initial function evaluations and run with:
java -cp ./clojure.jar:./myapp.jar clojure.main -i ./bootstrap.clj -r

That's not the only way - you could also use some of Clojure's gen-
class capabilities to generate an entry point with a main() method...

> Are there any tools to perform this "packaging up"?

Same choices as you would use for pure Java. I use Ant. I saw another
thread on the group in recent days about an Ant wrapper implemented in
Clojure that might be a good choice as well (I'm looking forward to
trying this out when I have some time).


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