LUCENE-10259: Fix startup scripts to allow whitespace in path names and use /bin/sh only (#472)

This commit is contained in:
Uwe Schindler 2021-11-25 16:07:23 +01:00 committed by GitHub
parent 40b38438c8
commit d973e50c15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -17,5 +17,5 @@
SETLOCAL SETLOCAL
SET MODULES=%~dp0.. SET MODULES=%~dp0..
start javaw --module-path %MODULES%\modules;%MODULES%\modules-thirdparty --add-modules org.apache.logging.log4j --module lucene.luke start javaw --module-path "%MODULES%\modules;%MODULES%\modules-thirdparty" --add-modules org.apache.logging.log4j --module lucene.luke
ENDLOCAL ENDLOCAL

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@ -15,5 +15,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
MODULES=$(cd $(dirname $0)/.. && pwd) MODULES=`dirname "$0"`/..
java --module-path $MODULES/modules:$MODULES/modules-thirdparty --add-modules org.apache.logging.log4j --module lucene.luke MODULES=`cd "$MODULES" && pwd`
java --module-path "$MODULES/modules:$MODULES/modules-thirdparty" --add-modules org.apache.logging.log4j --module lucene.luke