compileAndGo: support java 11

This commit is contained in:
Jephté Clain 2020-11-13 16:27:19 +04:00
parent dac4cb6a73
commit 434a8bce16
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ javac* | jikes*)
fi fi
[[ ! -z "${execute:="${compilerDir}java -cp $cacheDir${classPath:+:$classPath} $mainClass"}" ]] [[ ! -z "${execute:="${compilerDir}java -cp $cacheDir${classPath:+:$classPath} $mainClass"}" ]]
# Prepare to tell javac to compile for the latest language version it supports # Prepare to tell javac to compile for the latest language version it supports
sourceVersion="-source $(${compilerDir}java -version 2>&1 | sed -n '1s,[^"]*"\([1-9][1-9]*\.[1-9][1-9]*\).*,\1,p')" sourceVersion="-source $(${compilerDir}java -version 2>&1 | sed -n '1{s/.*"\(.*\)".*/\1/; s/^1\.//; s/\..*//; p}')"
;; ;;
jikes*) jikes*)
if [[ -z "$classPath" && -z "$compilerArgs" && -z "$CLASSPATH" ]] ; then if [[ -z "$classPath" && -z "$compilerArgs" && -z "$CLASSPATH" ]] ; then