/[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.15 Revision 1.16
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.15 2007/01/21 19:30:26 betelgeuse Exp $ 8# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.16 2007/01/21 22:27:18 betelgeuse Exp $
9 9
10inherit java-utils-2 10inherit java-utils-2
11 11
12# ----------------------------------------------------------------------------- 12# -----------------------------------------------------------------------------
13# @eclass-begin 13# @eclass-begin
66# EANT_BUILD_TARGET - the ant target/targets to execute (default: jar) 66# EANT_BUILD_TARGET - the ant target/targets to execute (default: jar)
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_ARGS - extra arguments to pass to eant
72# param: Parameters are passed to ant verbatim 72# param: Parameters are passed to ant verbatim
73# ------------------------------------------------------------------------------ 73# ------------------------------------------------------------------------------
74java-pkg-2_src_compile() { 74java-pkg-2_src_compile() {
75 if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then 75 if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then
76 [[ "${EANT_FILTER_COMPILER}" ]] && \ 76 [[ "${EANT_FILTER_COMPILER}" ]] && \
77 java-pkg_filter-compiler ${EANT_FILTER_COMPILER} 77 java-pkg_filter-compiler ${EANT_FILTER_COMPILER}
78 78
79 local antflags="${EANT_BUILD_TARGET:=jar}" 79 local antflags="${EANT_BUILD_TARGET:=jar}"
80 hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})" 80 hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})"
81 eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGUMENTS} "${@}" 81 eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGS} "${@}"
82 else 82 else
83 echo "${FUNCNAME}: No build.xml found so nothing to do." 83 echo "${FUNCNAME}: No build.xml found so nothing to do."
84 fi 84 fi
85} 85}
86 86

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

  ViewVC Help
Powered by ViewVC 1.1.20