/[gentoo-x86]/eclass/java-pkg-2.eclass
Gentoo

Diff of /eclass/java-pkg-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.14 Revision 1.15
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.14 2007/01/16 21:14:38 betelgeuse Exp $ 8# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.15 2007/01/21 19:30:26 betelgeuse Exp $
9 9
10inherit java-utils-2 10inherit java-utils-2
11 11
12# ----------------------------------------------------------------------------- 12# -----------------------------------------------------------------------------
13# @eclass-begin 13# @eclass-begin
67# EANT_DOC_TARGET - the target to build extra docs under the doc use flag 67# EANT_DOC_TARGET - the target to build extra docs under the doc use flag
68# (default: the one provided by use_doc in 68# (default: the one provided by use_doc in
69# java-utils-2.eclass) 69# java-utils-2.eclass)
70# EANT_GENTOO_CLASSPATH - @see eant documention in java-utils-2.eclass 70# EANT_GENTOO_CLASSPATH - @see eant documention in java-utils-2.eclass
71# EANT_EXTRA_ARGUMENTS - extra arguments to pass to eant 71# EANT_EXTRA_ARGUMENTS - extra arguments to pass to eant
72# param: Parameters are passed to ant verbatim
72# ------------------------------------------------------------------------------ 73# ------------------------------------------------------------------------------
73java-pkg-2_src_compile() { 74java-pkg-2_src_compile() {
74 if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then 75 if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then
75 [[ "${EANT_FILTER_COMPILER}" ]] && \ 76 [[ "${EANT_FILTER_COMPILER}" ]] && \
76 java-pkg_filter-compiler ${EANT_FILTER_COMPILER} 77 java-pkg_filter-compiler ${EANT_FILTER_COMPILER}
77 78
78 local antflags="${EANT_BUILD_TARGET:=jar}" 79 local antflags="${EANT_BUILD_TARGET:=jar}"
79 hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})" 80 hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})"
80 eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGUMENTS} 81 eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGUMENTS} "${@}"
81 else 82 else
82 echo "${FUNCNAME}: No build.xml found so nothing to do." 83 echo "${FUNCNAME}: No build.xml found so nothing to do."
83 fi 84 fi
84} 85}
85 86

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20