2009/9/9 Phil Hagelberg <p...@hagelb.org>: > > Rick Moynihan <rick.moyni...@gmail.com> writes: > >> One problem I do have with clojure-mode/clojure is managing the >> classpaths for clojure projects... It seems that the typical elisp >> config only has one variable (which is then shared across all clojure >> files) for specifying the classpath... >> ... SNIP ... > The solution I've settled on is the clojure-project function: > > (defun clojure-project (path) > .... SNIP ... > > This just resets the classpath to include target/dependency/ as well as > any jars in the lib/ directory of your project. I've included this in > the Emacs Starter Kit but haven't included it in clojure-mode yet since > I haven't quite decided if it's suitable for everyone. But it seems > there's a demand for it; so I guess I'll include it.
Yes, that looks like just what I'm after (I haven't yet tried it out - but will be sure to!)... This issue has got me thinking that the real problem appears to be that there isn't a standard or default way (script) to start up and run java/clojure projects... i.e. though this solves the problem when running clojure programs in emacs it doesn't do so for when you move into a different environment (perhaps staging or production) and want to run a REPL configured for your project or clojure program. I think there will always be a need for people to craft the JVM args for specific projects themselves, but it'd be nice if clojure could provide a default mechanism for specifying the basic JVM args etc in a way that meant it worked across environments, editors and environments... Is such a thing possible or even desirable... Personally I think finding a nice lightweight, default solution to this problem that can be supported by all environments/editors/IDE's would make clojure even more suited to rapid prototyping, experimental development and bootstrapping projects in a painless manner. Any thoughts? R. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---