--- java-utils-2.eclass.orig 2008-07-09 22:35:59.000000000 +0100 +++ java-utils-2.eclass 2008-07-13 11:57:53.726325717 +0100 @@ -1819,6 +1819,7 @@ # EANT_GENTOO_CLASSPATH - calls java-pkg_getjars for the value and adds to the # gentoo.classpath property. Be sure to call # java-ant_rewrite-classpath in src_unpack. +# EANT_NEEDS_TOOLS - add tools.jar to the classpath. # JAVA_PKG_NO_BUNDLED_SEARCH - Don't search for bundled jars or class files # *ANT_TASKS - used to determine ANT_TASKS before calling Ant. # ------------------------------------------------------------------------------ @@ -1942,6 +1943,8 @@ cp="${cp}:$(java-pkg_getjars ${getjarsarg} ${atom})" done + [[ -n "${EANT_NEEDS_TOOLS}" ]] && cp="${cp}:$(java-config --tools)" + if [[ ${cp} ]]; then # It seems ant does not like single quotes around ${cp} antflags="${antflags} -Dgentoo.classpath=\"${cp#:}\""