summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-01-10 09:59:21 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-01-10 09:59:21 +0000
commit34661b39ccb3d46a3f83787acf5a526e9a912c7d (patch)
tree565b5794e0d811b51eff46a82a0da1824fce5561 /eclass/java-pkg-2.eclass
parentAdded to code to automatically show possible bundled jars in pre_src_compile. (diff)
downloadhistorical-34661b39ccb3d46a3f83787acf5a526e9a912c7d.tar.gz
historical-34661b39ccb3d46a3f83787acf5a526e9a912c7d.tar.bz2
historical-34661b39ccb3d46a3f83787acf5a526e9a912c7d.zip
Added EANT_FILTER_COMPILER to the default src_compile control variables.
Diffstat (limited to 'eclass/java-pkg-2.eclass')
-rw-r--r--eclass/java-pkg-2.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/java-pkg-2.eclass b/eclass/java-pkg-2.eclass
index 99f3843ccd4a..27311e66a77e 100644
--- a/eclass/java-pkg-2.eclass
+++ b/eclass/java-pkg-2.eclass
@@ -5,7 +5,7 @@
#
# Licensed under the GNU General Public License, v2
#
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.9 2007/01/10 09:52:51 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.10 2007/01/10 09:59:21 betelgeuse Exp $
inherit java-utils-2
@@ -51,6 +51,7 @@ java-pkg-2_pkg_setup() {
# Default src_compile for java packages
# variables:
# EANT_BUILD_XML - controls the location of the build.xml (default: ./build.xml)
+# EANT_FILTER_COMPILER - Calls java-pkg_filter-compiler with the value
# EANT_BUILD_TARGET - the ant target/targets to execute (default: jar)
# EANT_DOC_TARGET - the target to build extra docs under the doc use flag
# (default: the one provided by use_doc in
@@ -58,6 +59,9 @@ java-pkg-2_pkg_setup() {
# ------------------------------------------------------------------------------
java-pkg-2_src_compile() {
if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then
+ [[ "${EANT_FILTER_COMPILER}" ]] && \
+ java-pkg_filter-compiler ${EANT_FILTER_COMPILER}
+
local antflags="${EANT_BUILD_TARGET:=jar}"
hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})"
eant ${antflags} -f "${EANT_BUILD_XML}"