Pass paramaters on to eant in the default src_compile.
authorPetteri Räty <betelgeuse@gentoo.org>
Sun, 21 Jan 2007 19:30:26 +0000 (19:30 +0000)
committerPetteri Räty <betelgeuse@gentoo.org>
Sun, 21 Jan 2007 19:30:26 +0000 (19:30 +0000)
eclass/java-pkg-2.eclass

index 30d090d66282510abd32802af8be345ca9c6b234..2c054f67c204bb9a5dcdb88ab8b45481b4c9515c 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.14 2007/01/16 21:14:38 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.15 2007/01/21 19:30:26 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_ARGUMENTS - extra arguments to pass to eant
+# param: Parameters are passed to ant verbatim
 # ------------------------------------------------------------------------------
 java-pkg-2_src_compile() {
        if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then
@@ -77,7 +78,7 @@ 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_ARGUMENTS}
+               eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGUMENTS} "${@}"
        else
                echo "${FUNCNAME}: No build.xml found so nothing to do."
        fi