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

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

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

Revision 1.40 Revision 1.41
4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org> 4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
5# Copyright (c) 2004-2005, Gentoo Foundation 5# Copyright (c) 2004-2005, Gentoo Foundation
6# 6#
7# Licensed under the GNU General Public License, v2 7# Licensed under the GNU General Public License, v2
8# 8#
9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.40 2007/01/10 09:52:51 betelgeuse Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.41 2007/01/12 16:12:15 betelgeuse Exp $
10 10
11 11
12# ----------------------------------------------------------------------------- 12# -----------------------------------------------------------------------------
13# @eclass-begin 13# @eclass-begin
14# @eclass-shortdesc Java Utility eclass 14# @eclass-shortdesc Java Utility eclass
1334# ------------------------------------------------------------------------------ 1334# ------------------------------------------------------------------------------
1335# @ebuild-function eant 1335# @ebuild-function eant
1336# 1336#
1337# Ant wrapper function. Will use the appropriate compiler, based on user-defined 1337# Ant wrapper function. Will use the appropriate compiler, based on user-defined
1338# compiler. 1338# compiler.
1339# variables:
1340# EANT_GENTOO_CLASSPATH - calls java-pkg_getjars for the value and adds to the
1341# gentoo.classpath property. Be sure to call
1342# java-ant_rewrite-classpath in src_unpack.
1339# 1343#
1340# ------------------------------------------------------------------------------ 1344# ------------------------------------------------------------------------------
1341eant() { 1345eant() {
1342 debug-print-function ${FUNCNAME} $* 1346 debug-print-function ${FUNCNAME} $*
1343 1347
1375 antflags="${antflags} -Dbuild.sysclasspath=ignore" 1379 antflags="${antflags} -Dbuild.sysclasspath=ignore"
1376 fi 1380 fi
1377 1381
1378 if [[ -n ${JAVA_PKG_DEBUG} ]]; then 1382 if [[ -n ${JAVA_PKG_DEBUG} ]]; then
1379 antflags="${antflags} -debug" 1383 antflags="${antflags} -debug"
1384 fi
1385
1386 local gcp="${EANT_GENTOO_CLASSPATH}"
1387
1388 if [[ "${gcp}" ]]; then
1389 local cp="$(java-pkg_getjars ${gcp})"
1390 # It seems ant does not like single quotes around ${cp}
1391 antflags="${antflags} -Dgentoo.classpath=\"${cp}\""
1380 fi 1392 fi
1381 1393
1382 [[ -n ${JAVA_PKG_DEBUG} ]] && echo ant ${antflags} "${@}" 1394 [[ -n ${JAVA_PKG_DEBUG} ]] && echo ant ${antflags} "${@}"
1383 ant ${antflags} "${@}" || die "eant failed" 1395 ant ${antflags} "${@}" || die "eant failed"
1384 1396

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

  ViewVC Help
Powered by ViewVC 1.1.20