mirror of https://github.com/apache/lucene.git
LUCENE-10259: Fix startup scripts to allow whitespace in path names and use /bin/sh only (#472)
This commit is contained in:
parent
40b38438c8
commit
d973e50c15
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue