From f426c2de3ec1141a3e21548ddb86324929f3be9e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petteri=20R=C3=A4ty?= Date: Sat, 20 Jan 2007 22:27:34 +0000 Subject: [PATCH] Add support for JAVA_ANT_IGNORE_SYSTEM_CLASSES. --- eclass/java-ant-2.eclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eclass/java-ant-2.eclass b/eclass/java-ant-2.eclass index 0b20f237ba2a..a82ab469b5e9 100644 --- a/eclass/java-ant-2.eclass +++ b/eclass/java-ant-2.eclass @@ -10,7 +10,7 @@ # # 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 @@ -20,6 +20,7 @@ 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 @@ -71,6 +72,8 @@ JAVA_PKG_BSFIX_SOURCE_TAGS=${JAVA_PKG_BSFIX_SOURCE_TAGS:-"javadoc javac xjavac j # @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 @@ -78,6 +81,8 @@ post_src_unpack() { ant_src_unpack fi java-ant_bsfix + [[ "${JAVA_ANT_IGNORE_SYSTEM_CLASSES}" ]] \ + && java-ant_ignore-system-classes "${S}/build.xml" } # ------------------------------------------------------------------------------ -- 2.26.2