Skip to content

Commit 9e5b7ac

Browse files
Rajoduo@yahoo.comdnolen
authored andcommitted
CLJ-1868 - Output simpler dependency rel paths when compiling with Closure libs
Until now compiler did not parse input paths for Closure dependencies correctly and as a result the output paths contained full absolute path as its part. That path contained charachters like : and ! that were ok on unix machines but caused problem on windows machines. With this fix the compiler will output correct rel paths.
1 parent 62337d0 commit 9e5b7ac

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,10 +1526,7 @@
15261526
(if (.endsWith lib-path ".js")
15271527
(util/get-name url)
15281528
(let [path (util/path url)]
1529-
(string/replace
1530-
path
1531-
(str (io/file (System/getProperty "user.dir") lib-path) File/separator)
1532-
"")))))
1529+
(subs path (+ (.lastIndexOf path lib-path) (.length lib-path)))))))
15331530

15341531
(defn ^String rel-output-path
15351532
"Given an IJavaScript which is either in memory, in a jar file,

0 commit comments

Comments
 (0)