Yes, this key was recently added, and is currently only available in the
development snapshot (1.6.0-SNAPSHOT).  You have the most recent stable
version, 1.5.2, which is what lein upgrade pulls down.

The current development version is available at:
https://github.com/technomancy/leiningen/raw/master/bin/lein

<https://github.com/technomancy/leiningen/raw/master/bin/lein>

On Tue, May 24, 2011 at 3:49 PM, Eric S Fraga <[email protected]> wrote:

> Aaron Cohen <[email protected]> writes:
>
> > On Tue, May 24, 2011 at 3:55 AM, Eric S Fraga <[email protected]> wrote:
> >> Therefore, I want to tell lein that, for a given project, I have Java
> >> packages in, say, ${HOME}/share/classes that I wish to access from
> >
> >> within that project.  Can any body point me in the right direction?  I
> >> assume I need to add something to the project.clj file but have not been
> >> able to determine what this should be.  Apologies if this is a n00b
> >> question.
> >
> > You may be looking for the :extra-classpath-dirs key in project.clj?
>
> Thanks.  That does look like what I need but it doesn't seem to work for
> me.  I've got the following (test) project file:
>
> --8<---------------cut here---------------start------------->8---
> (defproject hello "1.0.0-SNAPSHOT"
>  :description "FIXME: write description"
>  :dependencies [[org.clojure/clojure "1.2.1"]]
>  :extra-classpath-dirs ["/home/ucecesf/hg/jacaranda/src/java"]
>  :main hello.core)
> --8<---------------cut here---------------end--------------->8---
>
> as created by lein but with the :extra-classpath-dirs line added.  With
> this file, I get the following behaviour:
>
> ,----
> | $ lein version
> | Leiningen 1.5.2 on Java 1.6.0_24 Java HotSpot(TM) Client VM
> | $ lein classpath
> | /home/ucecesf/synced/test/hello/src:
> | /home/ucecesf/synced/test/hello/test:
> | /home/ucecesf/synced/test/hello/classes:
> | /home/ucecesf/synced/test/hello/test-resources:
> | /home/ucecesf/synced/test/hello/resources:
> | /home/ucecesf/synced/test/hello/lib/clojure-1.2.1.jar:
> | /home/ucecesf/.lein/plugins/swank-clojure-1.3.0.jar
> |
> | $ lein repl
> | REPL started; server listening on localhost:17738.
> | hello.core=> (new jacaranda.base.EGO)
> | java.lang.ClassNotFoundException: jacaranda.base.EGO (NO_SOURCE_FILE:1)
> | hello.core=>
> `----
>
> so it appears the lein is ignoring the :extra-classpath-dirs directive.
>
> Do I need to use a more recent version of leiningen?  The one I have is
> the one I get by 'lein upgrade'.  Or have I done something silly along
> the way?
>
> Thanks again,
> eric
>
> --
> : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 + No Gnus
> v0.18
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to