Added EANT_ANT_TASKS to pass ANT_TASKS to eant. ANT_TASKS is unset in java-pkg_init...
authorPetteri Räty <betelgeuse@gentoo.org>
Thu, 25 Jan 2007 23:02:55 +0000 (23:02 +0000)
committerPetteri Räty <betelgeuse@gentoo.org>
Thu, 25 Jan 2007 23:02:55 +0000 (23:02 +0000)
eclass/java-pkg-2.eclass

index 87f8568f48f29ba072b6a69b8b4ca17b1c34dac7..276c98f29e74f190aaa245faef3268a71c703657 100644 (file)
@@ -5,7 +5,7 @@
 #
 # Licensed under the GNU General Public License, v2
 #
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.16 2007/01/21 22:27:18 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.17 2007/01/25 23:02:55 betelgeuse Exp $
 
 inherit java-utils-2
 
@@ -69,6 +69,7 @@ java-pkg-2_pkg_setup() {
 #                   java-utils-2.eclass)
 # EANT_GENTOO_CLASSPATH - @see eant documention in java-utils-2.eclass
 # EANT_EXTRA_ARGS - extra arguments to pass to eant
+# EANT_ANT_TASKS - modifies the ANT_TASKS variable in the eant environment
 # param: Parameters are passed to ant verbatim
 # ------------------------------------------------------------------------------
 java-pkg-2_src_compile() {
@@ -78,7 +79,8 @@ java-pkg-2_src_compile() {
 
                local antflags="${EANT_BUILD_TARGET:=jar}"
                hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})"
-               eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGS} "${@}"
+               ANT_TASKS="${ANT_TASKS} ${EANT_ANT_TASKS}" \
+                       eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGS} "${@}"
        else
                echo "${FUNCNAME}: No build.xml found so nothing to do."
        fi