Enable unix protocol on Windows (#1516)
This commit is contained in:
parent
e74e7ed2ca
commit
9545d23cc4
4 changed files with 7 additions and 7 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
version: "v-{build}"
|
version: "v-{build}"
|
||||||
|
|
||||||
image: Visual Studio 2017
|
image: Visual Studio 2019
|
||||||
|
|
||||||
clone_folder: C:\projects\babashka
|
clone_folder: C:\projects\babashka
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@ build_script:
|
||||||
# see https://github.com/quarkusio/quarkus/pull/7663
|
# see https://github.com/quarkusio/quarkus/pull/7663
|
||||||
|
|
||||||
- cmd: >-
|
- cmd: >-
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
|
|
||||||
call script/uberjar.bat
|
call script/uberjar.bat
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Args=-H:+ReportExceptionStackTraces \
|
||||||
-H:IncludeResources=src/babashka/.* \
|
-H:IncludeResources=src/babashka/.* \
|
||||||
-H:IncludeResources=SCI_VERSION \
|
-H:IncludeResources=SCI_VERSION \
|
||||||
-H:Log=registerResource:3 \
|
-H:Log=registerResource:3 \
|
||||||
-H:EnableURLProtocols=http,https,jar \
|
-H:EnableURLProtocols=http,https,jar,unix \
|
||||||
--enable-all-security-services \
|
--enable-all-security-services \
|
||||||
-H:+JNI \
|
-H:+JNI \
|
||||||
--no-server \
|
--no-server \
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,11 @@
|
||||||
java.net.StandardProtocolFamily
|
java.net.StandardProtocolFamily
|
||||||
[java.nio.channels ServerSocketChannel SocketChannel])
|
[java.nio.channels ServerSocketChannel SocketChannel])
|
||||||
|
|
||||||
(require '[clojure.java.io :as io])
|
(require '[clojure.java.io :as io]
|
||||||
|
'[babashka.fs])
|
||||||
|
|
||||||
(def sockaddr (UnixDomainSocketAddress/of
|
(def sockaddr (UnixDomainSocketAddress/of
|
||||||
(-> (doto (io/file "/tmp/sock")
|
(-> (doto (fs/file (fs/temp-dir) "server.socket")
|
||||||
(.deleteOnExit))
|
(.deleteOnExit))
|
||||||
str)))
|
str)))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,5 +21,4 @@
|
||||||
[(.isVirtual t) (.isVirtual vt)]))))))
|
[(.isVirtual t) (.isVirtual vt)]))))))
|
||||||
|
|
||||||
(deftest domain-sockets-test
|
(deftest domain-sockets-test
|
||||||
(when-not test-utils/windows?
|
(is (= :success (bb nil (slurp "test-resources/domain_sockets.bb")))))
|
||||||
(is (= :success (bb nil (slurp "test-resources/domain_sockets.bb"))))))
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue