| … | |
… | |
| 3 | # Copyright (c) 2004-2005, Thomas Matthijs <axxo@gentoo.org> |
3 | # Copyright (c) 2004-2005, Thomas Matthijs <axxo@gentoo.org> |
| 4 | # Copyright (c) 2004-2005, Gentoo Foundation |
4 | # Copyright (c) 2004-2005, Gentoo Foundation |
| 5 | # |
5 | # |
| 6 | # Licensed under the GNU General Public License, v2 |
6 | # Licensed under the GNU General Public License, v2 |
| 7 | # |
7 | # |
| 8 | # $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.6 2006/12/17 16:44:06 betelgeuse Exp $ |
8 | # $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.7 2006/12/18 10:09:58 betelgeuse Exp $ |
| 9 | |
9 | |
| 10 | inherit java-utils-2 |
10 | inherit java-utils-2 |
| 11 | |
11 | |
| 12 | # ----------------------------------------------------------------------------- |
12 | # ----------------------------------------------------------------------------- |
| 13 | # @eclass-begin |
13 | # @eclass-begin |
| … | |
… | |
| 58 | # ------------------------------------------------------------------------------ |
58 | # ------------------------------------------------------------------------------ |
| 59 | java-pkg-2_src_compile() { |
59 | java-pkg-2_src_compile() { |
| 60 | if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then |
60 | if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then |
| 61 | local antflags="${EANT_BUILD_TARGET:=jar}" |
61 | local antflags="${EANT_BUILD_TARGET:=jar}" |
| 62 | hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})" |
62 | hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})" |
| 63 | eant ${antflags} -f ${EANT_BUILD_XML} |
63 | eant ${antflags} -f "${EANT_BUILD_XML}" |
| 64 | else |
64 | else |
| 65 | vecho "${FUNCNAME}: No build.xml found so nothing to do." |
65 | vecho "${FUNCNAME}: No build.xml found so nothing to do." |
| 66 | fi |
66 | fi |
| 67 | } |
67 | } |
| 68 | |
68 | |