Bug fix for leading spaces in JVM_OPTS #856

This commit is contained in:
Bruce Adams 2012-11-19 11:36:14 -05:00
parent 24fd117104
commit 7495e10103

View file

@ -98,7 +98,8 @@
(defn ^:internal get-jvm-opts-from-env [env-opts] (defn ^:internal get-jvm-opts-from-env [env-opts]
(and (seq env-opts) (and (seq env-opts)
(reduce join-broken-arg [] (.split env-opts " ")))) (reduce join-broken-arg []
(.split (string/trim env-opts) " "))))
(defn- get-jvm-args (defn- get-jvm-args
"Calculate command-line arguments for launching java subprocess." "Calculate command-line arguments for launching java subprocess."