File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ classpath. Classpath-relative paths have prefix of @ or @/")
203
203
(missing-file str))))))
204
204
205
205
(defn load-edn-opts [str]
206
- (reduce merge {} (map read-edn-opts (string /split str #":" ))))
206
+ (reduce merge {} (map read-edn-opts (util /split-paths str))))
207
207
208
208
(defn- repl-env-opts-opt
209
209
[cfg ropts]
@@ -552,12 +552,12 @@ present"
552
552
[" -ro" " --repl-opts" ] {:group ::main&compile :fn repl-env-opts-opt
553
553
:arg " edn"
554
554
:doc (str " Options to configure the repl-env, can be an EDN string or "
555
- " colon separated list of EDN files / classpath resources. Options "
555
+ " system-dependent path- separated list of EDN files / classpath resources. Options "
556
556
" will be merged left to right." )}
557
557
[" -co" " --compile-opts" ] {:group ::main&compile :fn compile-opts-opt
558
558
:arg " edn"
559
559
:doc (str " Options to configure the build, can be an EDN string or "
560
- " colon separated list of EDN files / classpath resources. Options "
560
+ " system-dependent path- separated list of EDN files / classpath resources. Options "
561
561
" will be merged left to right." )}}
562
562
:main
563
563
{[" -r" " --repl" ] {:fn repl-opt
Original file line number Diff line number Diff line change 7
7
; ; You must not remove this notice, or any other, from this software.
8
8
9
9
(ns cljs.js-deps
10
- (:require [cljs.util :refer [distinct-by]]
10
+ (:require [cljs.util :as util : refer [distinct-by]]
11
11
[clojure.java.io :as io]
12
12
[clojure.string :as string])
13
13
(:import [java.io File]
32
32
(filter (partial instance? URLClassLoader))
33
33
(mapcat #(.getURLs ^URLClassLoader %)))
34
34
(-> (System/getProperty " java.class.path" )
35
- ( string /split ( re-pattern File/pathSeparator)) ))
35
+ util /split-paths ))
36
36
distinct
37
37
(map io/file)))
38
38
Original file line number Diff line number Diff line change 111
111
([parts sep]
112
112
(apply str (interpose sep parts))))
113
113
114
+ (defn split-paths
115
+ [paths-str]
116
+ (string/split paths-str (re-pattern File/pathSeparator)))
117
+
114
118
(declare ext )
115
119
116
120
(defn ^File to-target-file
You can’t perform that action at this time.
0 commit comments