/[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.16 Revision 1.17
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.16 2007/01/21 22:27:18 betelgeuse Exp $ 8# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.17 2007/01/25 23:02:55 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_ARGS - extra arguments to pass to eant 71# EANT_EXTRA_ARGS - extra arguments to pass to eant
72# EANT_ANT_TASKS - modifies the ANT_TASKS variable in the eant environment
72# param: Parameters are passed to ant verbatim 73# param: Parameters are passed to ant verbatim
73# ------------------------------------------------------------------------------ 74# ------------------------------------------------------------------------------
74java-pkg-2_src_compile() { 75java-pkg-2_src_compile() {
75 if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then 76 if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then
76 [[ "${EANT_FILTER_COMPILER}" ]] && \ 77 [[ "${EANT_FILTER_COMPILER}" ]] && \
77 java-pkg_filter-compiler ${EANT_FILTER_COMPILER} 78 java-pkg_filter-compiler ${EANT_FILTER_COMPILER}
78 79
79 local antflags="${EANT_BUILD_TARGET:=jar}" 80 local antflags="${EANT_BUILD_TARGET:=jar}"
80 hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})" 81 hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})"
82 ANT_TASKS="${ANT_TASKS} ${EANT_ANT_TASKS}" \
81 eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGS} "${@}" 83 eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGS} "${@}"
82 else 84 else
83 echo "${FUNCNAME}: No build.xml found so nothing to do." 85 echo "${FUNCNAME}: No build.xml found so nothing to do."
84 fi 86 fi
85} 87}
86 88

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

  ViewVC Help
Powered by ViewVC 1.1.20