瀏覽代碼

Handle spaces in java library path (#106789)

This commit quotes the entire library path in case there are spaces in
any of the paths.
Ryan Ernst 1 年之前
父節點
當前提交
e58644cd6f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      build-tools-internal/src/main/groovy/elasticsearch.ide.gradle

+ 1 - 1
build-tools-internal/src/main/groovy/elasticsearch.ide.gradle

@@ -168,7 +168,7 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') {
               '-ea',
               '-Djava.security.manager=allow',
               '-Djava.locale.providers=SPI,COMPAT',
-              '-Des.nativelibs.path=' + testLibraryPath,
+              '-Des.nativelibs.path="' + testLibraryPath + '"',
               // TODO: only open these for mockito when it is modularized
               '--add-opens=java.base/java.security.cert=ALL-UNNAMED',
               '--add-opens=java.base/java.nio.channels=ALL-UNNAMED',