Use the full deptree with EANT_GENTOO_CLASSPATH when in src_test.
authorPetteri Räty <betelgeuse@gentoo.org>
Fri, 20 Apr 2007 16:13:46 +0000 (16:13 +0000)
committerPetteri Räty <betelgeuse@gentoo.org>
Fri, 20 Apr 2007 16:13:46 +0000 (16:13 +0000)
eclass/java-utils-2.eclass

index a5a0130d88064359a0bad2cb4ceedb641f849e1e..c31a64182bb44dc6be7200e766837b764d45a872 100644 (file)
@@ -6,7 +6,7 @@
 #
 # Licensed under the GNU General Public License, v2
 #
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.74 2007/04/20 15:23:28 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.75 2007/04/20 16:13:46 betelgeuse Exp $
 
 
 # -----------------------------------------------------------------------------
@@ -1717,12 +1717,13 @@ eant() {
        if [[ ${EBUILD_PHASE} = "test" ]]; then
                antflags="${antflags} -DJunit.present=true"
                [[ ${gcp} && ${ANT_TASKS} = *ant-junit* ]] && gcp="${gcp} junit"
+               local getjarsarg="--with-dependencies"
        fi
 
        local cp
 
        for atom in ${gcp}; do
-               cp="${cp}:$(java-pkg_getjars ${atom})"
+               cp="${cp}:$(java-pkg_getjars ${getjarsarg} ${atom})"
        done
 
        if [[ ${cp} ]]; then
@@ -1731,9 +1732,8 @@ eant() {
        fi
 
        [[ -n ${JAVA_PKG_DEBUG} ]] && echo ant ${antflags} "${@}"
-       debug-print "Calling ant: ${antflags} ${@}"
+       debug-print "Calling ant (GENTOO_VM: ${GENTOO_VM}): ${antflags} ${@}"
        ant ${antflags} "${@}" || die "eant failed"
-
 }
 
 # ------------------------------------------------------------------------------