clj-on-windows

For those interested in making clj on Windows https://dev.clojure.org/jira/browse/TDEPS-67. Also see https://github.com/littleli/scoop-clojure.
chucklehead 2021-01-03T01:23:20.157500Z

do options to clj -J need to be quoted/escaped somehow on Windows? For something like clj -J-Dclojure.server.repl='{:port 5555 :accept clojure.core.server/repl}' I'm getting

Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2).
.server.repl={:port 5555 :accept clojure.core.server\repl} (The filename, directory name, or volume label syntax is incorrect)

chucklehead 2021-01-03T01:24:15.158200Z

the equivalent works fine in WSL

chucklehead 2021-01-03T01:24:22.158400Z

Just noticed based on the error that something is changing the / in the :accept option to \ , not sure how to prevent that

chucklehead 2021-01-03T03:06:34.161Z

survey says:

clj '-J-Dclojure.server.repl={:port 5555 :accept clojure.core.server/repl}'

chucklehead 2021-01-03T03:09:58.162800Z

fooled myself with the coerced path, never realized clj was implemented as a PowerShell function on Windows and ps splits args on .