aboutsummaryrefslogtreecommitdiff
path: root/lux-lein/src/leiningen
diff options
context:
space:
mode:
Diffstat (limited to 'lux-lein/src/leiningen')
-rw-r--r--lux-lein/src/leiningen/lux/utils.clj12
1 files changed, 8 insertions, 4 deletions
diff --git a/lux-lein/src/leiningen/lux/utils.clj b/lux-lein/src/leiningen/lux/utils.clj
index 40eb5bad8..17315f39c 100644
--- a/lux-lein/src/leiningen/lux/utils.clj
+++ b/lux-lein/src/leiningen/lux/utils.clj
@@ -39,7 +39,7 @@
nil))
jar-paths))
stdlib-path (prepare-path (some (fn [^:private path]
- (if (.contains path "com/github/luxlang/lux-stdlib")
+ (if (.contains path "com/github/luxlang/stdlib")
path
nil))
jar-paths))
@@ -70,7 +70,8 @@
" " output-dir))))
(defn repl-path [project source-paths]
- (let [jar-paths (->> ^java.net.URLClassLoader (ClassLoader/getSystemClassLoader)
+ (let [output-dir (get-in project [:lux :target] output-dir)
+ jar-paths (->> ^java.net.URLClassLoader (ClassLoader/getSystemClassLoader)
(.getURLs)
(map #(.getFile ^java.net.URL %))
(filter #(.endsWith ^String % ".jar")))
@@ -80,7 +81,7 @@
nil))
jar-paths))
stdlib-path (prepare-path (some (fn [^:private path]
- (if (.contains path "com/github/luxlang/lux-stdlib")
+ (if (.contains path "com/github/luxlang/stdlib")
path
nil))
jar-paths))
@@ -99,7 +100,10 @@
java-cmd (get project :java-cmd "java")
jvm-opts (->> (get project :jvm-opts) (interpose " ") (reduce str ""))]
(str java-cmd " " jvm-opts " " vm-options " -cp " (str compiler-path java.io.File/pathSeparator class-path)
- " lux repl " (->> source-paths (interpose unit-separator) (apply str))))))
+ " lux repl "
+ (->> (get project :resource-paths (list)) (interpose unit-separator) (apply str))
+ " " (->> source-paths (interpose unit-separator) (apply str))
+ " " output-dir))))
(defn run-process [command working-directory pre post]
(let [process (.exec (Runtime/getRuntime) command nil working-directory)]