java-utils-2: Replace java-config VM handling with eselect-java
authorJames Le Cuirot <chewi@gentoo.org>
Mon, 1 Jan 2018 11:33:05 +0000 (11:33 +0000)
committerJames Le Cuirot <chewi@gentoo.org>
Wed, 24 Oct 2018 21:06:57 +0000 (22:06 +0100)
The VM handling options are deprecated.

Signed-off-by: James Le Cuirot <chewi@gentoo.org>
eclass/java-utils-2.eclass

index 25e35c33dd2145c739655237df735be4122b08a5..1ba8bc5c5b5a7c19289caacb04d3906a6717b045 100644 (file)
@@ -1480,7 +1480,7 @@ java-pkg_ensure-vm-version-sufficient() {
        if ! java-pkg_is-vm-version-sufficient; then
                debug-print "VM is not suffient"
                eerror "Current Java VM cannot build this package"
-               einfo "Please use java-config -S to set the correct one"
+               einfo "Please use \"eselect java-vm set system\" to set the correct one"
                die "Active Java VM cannot build this package"
        fi
 }
@@ -1508,7 +1508,7 @@ java-pkg_ensure-vm-version-eq() {
        if ! java-pkg_is-vm-version-eq $@ ; then
                debug-print "VM is not suffient"
                eerror "This package requires a Java VM version = $@"
-               einfo "Please use java-config -S to set the correct one"
+               einfo "Please use \"eselect java-vm set system\" to set the correct one"
                die "Active Java VM too old"
        fi
 }
@@ -1555,7 +1555,7 @@ java-pkg_ensure-vm-version-ge() {
        if ! java-pkg_is-vm-version-ge "$@" ; then
                debug-print "vm is not suffient"
                eerror "This package requires a Java VM version >= $@"
-               einfo "Please use java-config -S to set the correct one"
+               einfo "Please use \"eselect java-vm set system\" to set the correct one"
                die "Active Java VM too old"
        fi
 }