#
# Licensed under the GNU General Public License, v2
#
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.12 2007/01/12 14:03:16 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.13 2007/01/20 22:27:34 betelgeuse Exp $
inherit java-utils-2
# We need some tools from javatoolkit. We also need portage 2.1 for phase hooks
DEPEND=">=dev-java/javatoolkit-0.1.5 ${JAVA_PKG_PORTAGE_DEP}"
+[[ "${JAVA_ANT_DISABLE_ANT_CORE_DEP:-true}" ]] || DEPEND="${DEPEND} dev-java/ant-core"
# ------------------------------------------------------------------------------
# @global JAVA_PKG_BSFIX
# @public java-ant_src_unpack
#
# Unpacks the source, and attempts to fix build files.
+# variable JAVA_ANT_IGNORE_SYSTEM_CLASSES:
+# ignore ant classpath in available tasks
# ------------------------------------------------------------------------------
post_src_unpack() {
if java-pkg_func-exists ant_src_unpack; then
ant_src_unpack
fi
java-ant_bsfix
+ [[ "${JAVA_ANT_IGNORE_SYSTEM_CLASSES}" ]] \
+ && java-ant_ignore-system-classes "${S}/build.xml"
}
# ------------------------------------------------------------------------------