/[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.11 Revision 1.12
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.11 2007/01/12 13:48:12 betelgeuse Exp $ 8# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.12 2007/01/12 16:12:15 betelgeuse Exp $
9 9
10inherit java-utils-2 10inherit java-utils-2
11 11
12# ----------------------------------------------------------------------------- 12# -----------------------------------------------------------------------------
13# @eclass-begin 13# @eclass-begin
54# EANT_FILTER_COMPILER - Calls java-pkg_filter-compiler with the value 54# EANT_FILTER_COMPILER - Calls java-pkg_filter-compiler with the value
55# EANT_BUILD_TARGET - the ant target/targets to execute (default: jar) 55# EANT_BUILD_TARGET - the ant target/targets to execute (default: jar)
56# EANT_DOC_TARGET - the target to build extra docs under the doc use flag 56# EANT_DOC_TARGET - the target to build extra docs under the doc use flag
57# (default: the one provided by use_doc in 57# (default: the one provided by use_doc in
58# java-utils-2.eclass) 58# java-utils-2.eclass)
59# EANT_GENTOO_CLASSPATH - class java-pkg_getjars for the value and adds to the 59# EANT_GENTOO_CLASSPATH - @see eant documention in java-utils-2.eclass
60# gentoo.classpath property
61# EANT_EXTRA_ARGUMENTS - extra arguments to pass to eant 60# EANT_EXTRA_ARGUMENTS - extra arguments to pass to eant
62# ------------------------------------------------------------------------------ 61# ------------------------------------------------------------------------------
63java-pkg-2_src_compile() { 62java-pkg-2_src_compile() {
64 if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then 63 if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then
65 [[ "${EANT_FILTER_COMPILER}" ]] && \ 64 [[ "${EANT_FILTER_COMPILER}" ]] && \
66 java-pkg_filter-compiler ${EANT_FILTER_COMPILER} 65 java-pkg_filter-compiler ${EANT_FILTER_COMPILER}
67 66
68 local antflags="${EANT_BUILD_TARGET:=jar}" 67 local antflags="${EANT_BUILD_TARGET:=jar}"
69
70 local gcp="${EANT_GENTOO_CLASSPATH}"
71
72 if [[ "${gcp}" ]]; then
73 local cp="$(java-pkg_getjars ${gcp})"
74 # It seems ant does not like single quotes around ${cp}
75 antflags="${antflags} -Dgentoo.classpath=\"${cp}\""
76 fi
77
78 hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})" 68 hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})"
79 eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGUMENTS} 69 eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGUMENTS}
80 else 70 else
81 echo "${FUNCNAME}: No build.xml found so nothing to do." 71 echo "${FUNCNAME}: No build.xml found so nothing to do."
82 fi 72 fi

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20