Skip to content

Commit c0951c2

Browse files
committed
Remove hardcoded Java home
This was in there for test purposes and shouldn't have been released this way. Fixes #3.
1 parent 076d0b6 commit c0951c2

File tree

1 file changed

+3
-3
lines changed
  • src/main/clojure/dev/clojurephant/tooling

1 file changed

+3
-3
lines changed

src/main/clojure/dev/clojurephant/tooling/core.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
db (atom [])]
5959
(-> (.newBuild con)
6060
(.forTasks (into-array String tasks))
61-
(.setJavaHome (io/file "/usr/lib/jvm/java-18-openjdk-amd64"))
61+
;(.setJavaHome (io/file "/usr/lib/jvm/java-18-openjdk-amd64"))
6262
(.setStandardOutput System/out)
6363
(.setStandardError System/err)
6464
(.addProgressListener (collecting-listener db))
@@ -90,7 +90,7 @@
9090
(and (= :task (get-in e [:operation :descriptor]))
9191
(= :finish (:state e))))
9292
simplify (fn [t]
93-
(merge
93+
(merge
9494
{:task (-> t :operation :name)}
9595
(:result t)))]
9696
(->> (:events result)
@@ -108,7 +108,7 @@
108108
done (promise)
109109
db (atom [])]
110110
(-> (.model con type)
111-
(.setJavaHome (io/file "/usr/lib/jvm/java-18-openjdk-amd64"))
111+
;(.setJavaHome (io/file "/usr/lib/jvm/java-18-openjdk-amd64"))
112112
(.setStandardOutput System/out)
113113
(.setStandardError System/err)
114114
(.withCancellationToken (.token cancel-source))

0 commit comments

Comments
 (0)