Local variable declaration made paranoidly safe.
authorVlastimil Babka <caster@gentoo.org>
Fri, 20 Apr 2007 16:17:49 +0000 (16:17 +0000)
committerVlastimil Babka <caster@gentoo.org>
Fri, 20 Apr 2007 16:17:49 +0000 (16:17 +0000)
eclass/java-utils-2.eclass

index c31a64182bb44dc6be7200e766837b764d45a872..02f9da4bac80f8a05570564a40c45c83d6c2c074 100644 (file)
@@ -6,7 +6,7 @@
 #
 # Licensed under the GNU General Public License, v2
 #
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.75 2007/04/20 16:13:46 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.76 2007/04/20 16:17:49 caster Exp $
 
 
 # -----------------------------------------------------------------------------
@@ -1713,11 +1713,12 @@ eant() {
        [[ -n ${PORTAGE_QUIET} ]] && antflags="${antflags} -q"
 
        local gcp="${EANT_GENTOO_CLASSPATH}"
+       local getjarsarg=""
 
        if [[ ${EBUILD_PHASE} = "test" ]]; then
                antflags="${antflags} -DJunit.present=true"
                [[ ${gcp} && ${ANT_TASKS} = *ant-junit* ]] && gcp="${gcp} junit"
-               local getjarsarg="--with-dependencies"
+               getjarsarg="--with-dependencies"
        fi
 
        local cp