Can someone please elaborate on this subclassloader process? Although
the design for leiningen is architecturally simple and understandable
and thus easy to extend, I'm still quite unfamiliar with the "java
way". I believe a little documentation on this aspect can make a
significant improvement in allowing contributions to leiningen.

Also, I noticed that symlink support was added to the master branch. I
read the documentation for maven's ant symlink support and didn't see
any mention of hardlinking. Does this imply that hardlinking support
would need to be implemented separately? I feel hardlinking is a more
elegant solution as ~/.m2/repository can act as a true cache with size
bounds but without the fear that projects that depend on deleted
artifacts would be affected.


Phil Hagelberg wrote:
> On Wed, Mar 10, 2010 at 10:24 PM, Meikel Brandmeyer wrote: > On Mar
> 11, 5:07 am, Brent Millare wrote:
>
> >> Since leiningen downloads everything to a local repo, can't we do away
> >> with copies and use symlinks if they are supported by the filesystem?
> >> I feel there should be an option for this.
> >
> > Why not adding the files from the repo directly to the classpath?
> > Works everywhere and doesn't copy...
>
> Historically this has been because calculating the classpath couldn't
> be done in Clojure itself since it needed to be done before the JVM
> booted. Having to figure this kind of thing out in a shell script or
> in elisp is a headache if the rules are not simple. But now with the
> subclassloader approach that lein and mvn use it's less of an issue.
> But it would mean deprecating the pure-elisp swank launcher, and I
> don't know how it would affect other tools (IDEs, etc), so I'm still
> hesitant.
>
> I would be happy with a (simple-ish) patch to enable optionally
> switching to using symlinks or hard-links as this would be the
> lowest-impact fix, but I can't bring myself to care enough about the
> number of megabytes currently being wasted to code it myself; sorry.
>
> -Phil

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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to