compileAndGo: support java 11
This commit is contained in:
parent
dac4cb6a73
commit
434a8bce16
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue