mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 16:41:11 +02:00
eclass/java-utils-2: Sync with Gentoo
It's from Gentoo commit 7eddfd1f9b69da3a97fb5b6b3781a6a31feaa59a.
This commit is contained in:
parent
8bf25b4b83
commit
cbefa5b473
@ -1838,7 +1838,7 @@ ejunit_() {
|
||||
local junit=${1}
|
||||
shift 1
|
||||
|
||||
local cp=$(java-pkg_getjars --with-dependencies ${junit}${pkgs})
|
||||
local cp=$(java-pkg_getjars --build-only --with-dependencies ${junit}${pkgs})
|
||||
if [[ ${1} = -cp || ${1} = -classpath ]]; then
|
||||
cp="${2}:${cp}"
|
||||
shift 2
|
||||
@ -2723,7 +2723,13 @@ java-pkg_build-vm-from-handle() {
|
||||
fi
|
||||
|
||||
for vm in ${JAVA_PKG_WANT_BUILD_VM}; do
|
||||
if java-config-2 --select-vm=${vm} 2>/dev/null; then
|
||||
local java_config
|
||||
for java_config in java-config{,-2}; do
|
||||
type -p ${java_config} >/dev/null && break
|
||||
done
|
||||
[[ -z ${java_config} ]] && die "No java-config binary in PATH"
|
||||
|
||||
if ${java_config} --select-vm=${vm} 2>/dev/null; then
|
||||
echo ${vm}
|
||||
return 0
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user