Skip to content

Commit 2f6ff21

Browse files
rjernstcbuescher
authored andcommitted
Handle spaces in java library path (elastic#106789)
This commit quotes the entire library path in case there are spaces in any of the paths.
1 parent ff054a2 commit 2f6ff21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') {
168168
'-ea',
169169
'-Djava.security.manager=allow',
170170
'-Djava.locale.providers=SPI,COMPAT',
171-
'-Des.nativelibs.path=' + testLibraryPath,
171+
'-Des.nativelibs.path="' + testLibraryPath + '"',
172172
// TODO: only open these for mockito when it is modularized
173173
'--add-opens=java.base/java.security.cert=ALL-UNNAMED',
174174
'--add-opens=java.base/java.nio.channels=ALL-UNNAMED',

0 commit comments

Comments
 (0)