Added accessor methods for current vm, java-pkg_get-current-vm. Added metho,d java...
authorJoshua Nichols <nichoj@gentoo.org>
Sat, 5 Aug 2006 21:10:45 +0000 (21:10 +0000)
committerJoshua Nichols <nichoj@gentoo.org>
Sat, 5 Aug 2006 21:10:45 +0000 (21:10 +0000)
eclass/java-utils-2.eclass

index 444b88a38cfebdd873f3611b7ed38b9e4a07ecef..ab0f19ed1150a7581aa21116eeb3f2fe9dc2af4f 100644 (file)
@@ -1053,6 +1053,19 @@ java-pkg_is-vm-version-ge() {
        fi
 }
 
+java-pkg_set-current-vm() {
+       export GENTOO_VM=${1}
+}
+
+java-pkg_get-current-vm() {
+       echo ${GENTOO_VM}
+}
+
+java-pkg_current-vm-matches() {
+       hasq java-pkg_get-currenv-vm ${@}
+       return $?
+}
+
 # ------------------------------------------------------------------------------
 # @ebuild-function java-pkg_get-source
 # 
@@ -1204,6 +1217,12 @@ java-pkg_ensure-gcj() {
 eant() {
        debug-print-function ${FUNCNAME} $*
 
+       # FIXME get this working
+#      if is-java-strict && [[ ! ${DEPEND} =~ "dev-java/ant" ]]; then
+#              java-pkg_announce-qa-violation \
+#                      "Using eant, but not depending on dev-java/ant or dev-java/ant-core"
+#      fi
+
        local antflags
        java-pkg_init-compiler_
        local compiler="${GENTOO_COMPILER}"