Fixed a bug where the generic src_compile was unsetting ANT_TASKS from the env if...
authorPetteri Räty <betelgeuse@gentoo.org>
Sat, 7 Apr 2007 12:55:52 +0000 (12:55 +0000)
committerPetteri Räty <betelgeuse@gentoo.org>
Sat, 7 Apr 2007 12:55:52 +0000 (12:55 +0000)
eclass/java-pkg-2.eclass

index 5f7c5a64c4b5fddfd41c4b7d499d242c79993645..298861b65545f4c88a24e3d3d5f7b2592b8e21f8 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.20 2007/01/28 21:42:24 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.21 2007/04/07 12:55:52 betelgeuse Exp $
 
 inherit java-utils-2
 
@@ -81,7 +81,7 @@ java-pkg-2_src_compile() {
                hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})"
                local tasks
                [[ ${EANT_ANT_TASKS} ]] && tasks="${ANT_TASKS} ${EANT_ANT_TASKS}"
-               ANT_TASKS="${tasks}" \
+               ANT_TASKS="${tasks:-${ANT_TASKS}}" \
                        eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGS} "${@}"
        else
                echo "${FUNCNAME}: ${EANT_BUILD_XML} not found so nothing to do."