/[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.17 Revision 1.18
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.17 2007/01/25 23:02:55 betelgeuse Exp $ 8# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.18 2007/01/28 19:53:17 betelgeuse Exp $
9 9
10inherit java-utils-2 10inherit java-utils-2
11 11
12# ----------------------------------------------------------------------------- 12# -----------------------------------------------------------------------------
13# @eclass-begin 13# @eclass-begin
72# EANT_ANT_TASKS - modifies the ANT_TASKS variable in the eant environment 72# EANT_ANT_TASKS - modifies the ANT_TASKS variable in the eant environment
73# param: Parameters are passed to ant verbatim 73# param: Parameters are passed to ant verbatim
74# ------------------------------------------------------------------------------ 74# ------------------------------------------------------------------------------
75java-pkg-2_src_compile() { 75java-pkg-2_src_compile() {
76 if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then 76 if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then
77 if ! hasq java-ant-2 ${INHERITED}; then
78 msg="You should inherit java-ant-2 always when using eant"
79 ewarn ${msg}
80 is-java-strict && die ${msg}
81 fi
77 [[ "${EANT_FILTER_COMPILER}" ]] && \ 82 [[ "${EANT_FILTER_COMPILER}" ]] && \
78 java-pkg_filter-compiler ${EANT_FILTER_COMPILER} 83 java-pkg_filter-compiler ${EANT_FILTER_COMPILER}
79 84
80 local antflags="${EANT_BUILD_TARGET:=jar}" 85 local antflags="${EANT_BUILD_TARGET:=jar}"
81 hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})" 86 hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})"
82 ANT_TASKS="${ANT_TASKS} ${EANT_ANT_TASKS}" \ 87 ANT_TASKS="${ANT_TASKS} ${EANT_ANT_TASKS}" \
83 eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGS} "${@}" 88 eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGS} "${@}"
84 else 89 else
85 echo "${FUNCNAME}: No build.xml found so nothing to do." 90 echo "${FUNCNAME}: ${EANT_BUILD_XML} not found so nothing to do."
86 fi 91 fi
87} 92}
88 93
89# ------------------------------------------------------------------------------ 94# ------------------------------------------------------------------------------
90# @note 95# @note

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20