technomancy/leiningen — Issue #354: :native-path does not set java.library.path in lein run
Author: jarrett
Created: 2011-12-21 04:38:05+00:00
State: open

Here's the sample `project.clj`:

(defproject cljtest "1.0.0-SNAPSHOT"
:main cljtest.core
:description "FIXME: write description"
:dependencies [[org.clojure/clojure "1.3.0"]]
:native-path "native")

In `core.clj`, if you do this:

(println (. System getProperty "java.library.path"))

Then `lein run` prints something like this (may vary by platform):

.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java

Notice that the `native` directory as defined in `:native-path` is not in there. (I believe the expected behavior is to completely replace the default string.)

I could be misunderstand the intended usage, though. Is this the preferred way to set the native library path when using `lein run`?