On Thu, Jan 15, 2009 at 8:58 AM, Stephen C. Gilardi <squee...@mac.com> wrote: > I've checked in a bash script for launching Clojure to > clojure-contrib/launchers/bash/clj-env-dir.
I had a launch script (which I've now lost due to my own clumsiness) that defaulted to a repl if given no file options, and always loaded a .clojurerc.clj file before starting a repl (whether it was by default or specifically asked via -r). This allowed me to load repl-utils and get *print-length* set up before getting a prompt. But if a file was named with now -r, it was run with no repl. It used appropriate combinations of clojure.lang.Repl or clojure.lang.Script and file paths to make this happen. As far as I can tell this is impossible with clojure.main, which appears to only allow loading a file *or* starting a repl. Am I missing a method to support this, or should I go back to using Script/Repl? My script also accepted a -cp argument to augment any automatic or default classpath it set up. I found this useful when tracking down gen-class issues, but I never had this nice symlink-dir setup, which might very well be better. I apologize for not speaking up earlier in clojure.main's development, when such issues probably could have been addressed more easily. --Chouser --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---