On 1 July 2010 15:29, Laurent PETIT <laurent.pe...@gmail.com> wrote: > Hello, > > note that with java 6 you can specify at once to add all the jars > located in a directory: > > java -cp "libs/*" clojure.main > > and you can place any jar you want in directory libs. > > and this is composable: > > java -cp "clojure.jar:libs/*" clojure.main > > My 0.02€, just in case you didn't know this (rather recent) possibility.
Thanks. I had actually just discovered this possibility in the last few days. In fact, it is what raised in my mind the question of whether having too many jars on the classpath would hurt performance. I've not yet fully integrated the idea into my thinking. I guess it allows the possibility of bundling all application dependencies into a lib directory, then doing something like java -cp "clojure.jar;lib/*" clojure.main myapp.clj But in practical terms, I guess that's the equivalent of an uberjar. (My biggest concern about an uberjar is that I end up with each app having a separate bundled copy of all its dependencies. That makes version management a huge pain - imagine a bugfix release of clojure.jar - but is otherwise not an unreasonable option). Paul. -- 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