File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
graalpython/lib-graalpython/modules/standalone/app Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,16 @@ while [ -h "$source" ] ; do
12
12
done
13
13
location=" $( cd -P " $( dirname " $source " ) " && pwd ) "
14
14
15
+ if [ -z " $JAVA_HOME " ]; then
16
+ JAVA=$JAVA_HOME /bin/java
17
+ else
18
+ JAVA=java
19
+ fi
20
+
15
21
for var in " $@ " ; do
16
22
args=" ${args} $( printf " \v" ) ${var} "
17
23
done
18
24
19
25
export GRAAL_PYTHON_ARGS=$args
20
- echo graalpy.sh is going to execute: mvn -f " ${location} /pom.xml" exec:exec -Dexec.executable=java -Dexec.args=" --module-path %classpath '-Dorg.graalvm.launcher.executablename=$0 ' --module org.graalvm.py.launcher/com.oracle.graal.python.shell.GraalPythonMain"
21
- mvn -f " ${location} /pom.xml" exec:exec -Dexec.executable=java -Dexec.args=" --module-path %classpath '-Dorg.graalvm.launcher.executablename=$0 ' --module org.graalvm.py.launcher/com.oracle.graal.python.shell.GraalPythonMain"
26
+ echo graalpy.sh is going to execute: mvn -f " ${location} /pom.xml" exec:exec -Dexec.executable=$JAVA -Dexec.args=" --module-path %classpath '-Dorg.graalvm.launcher.executablename=$0 ' --module org.graalvm.py.launcher/com.oracle.graal.python.shell.GraalPythonMain"
27
+ mvn -f " ${location} /pom.xml" exec:exec -Dexec.executable=" ${JAVA} " -Dexec.args=" --module-path %classpath '-Dorg.graalvm.launcher.executablename=$0 ' --module org.graalvm.py.launcher/com.oracle.graal.python.shell.GraalPythonMain"
You can’t perform that action at this time.
0 commit comments