/[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.119 Revision 1.120
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.119 2008/12/20 19:25:29 betelgeuse Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.120 2008/12/29 00:16:40 caster Exp $
10 10
11# ----------------------------------------------------------------------------- 11# -----------------------------------------------------------------------------
12# @eclass-begin 12# @eclass-begin
13# @eclass-shortdesc Java Utility eclass 13# @eclass-shortdesc Java Utility eclass
14# @eclass-maintainer java@gentoo.org 14# @eclass-maintainer java@gentoo.org
1836# compiler. Will also set proper ANT_TASKS from the variable ANT_TASKS, 1836# compiler. Will also set proper ANT_TASKS from the variable ANT_TASKS,
1837# variables: 1837# variables:
1838# EANT_GENTOO_CLASSPATH - calls java-pkg_getjars for the value and adds to the 1838# EANT_GENTOO_CLASSPATH - calls java-pkg_getjars for the value and adds to the
1839# gentoo.classpath property. Be sure to call 1839# gentoo.classpath property. Be sure to call
1840# java-ant_rewrite-classpath in src_unpack. 1840# java-ant_rewrite-classpath in src_unpack.
1841# EANT_NEEDS_TOOLS - add tools.jar to the gentoo.classpath. Should only be used
1842# for build-time purposes, the dependency is not recorded to
1843# package.env!
1841# JAVA_PKG_NO_BUNDLED_SEARCH - Don't search for bundled jars or class files 1844# JAVA_PKG_NO_BUNDLED_SEARCH - Don't search for bundled jars or class files
1842# *ANT_TASKS - used to determine ANT_TASKS before calling Ant. 1845# *ANT_TASKS - used to determine ANT_TASKS before calling Ant.
1843# ------------------------------------------------------------------------------ 1846# ------------------------------------------------------------------------------
1844eant() { 1847eant() {
1845 debug-print-function ${FUNCNAME} $* 1848 debug-print-function ${FUNCNAME} $*
1939 local cp 1942 local cp
1940 1943
1941 for atom in ${gcp}; do 1944 for atom in ${gcp}; do
1942 cp="${cp}:$(java-pkg_getjars ${getjarsarg} ${atom})" 1945 cp="${cp}:$(java-pkg_getjars ${getjarsarg} ${atom})"
1943 done 1946 done
1947
1948 [[ -n "${EANT_NEEDS_TOOLS}" ]] && cp="${cp}:$(java-config --tools)"
1944 1949
1945 if [[ ${cp} ]]; then 1950 if [[ ${cp} ]]; then
1946 # It seems ant does not like single quotes around ${cp} 1951 # It seems ant does not like single quotes around ${cp}
1947 cp=${cp#:} 1952 cp=${cp#:}
1948 [[ ${EANT_GENTOO_CLASSPATH_EXTRA} ]] && \ 1953 [[ ${EANT_GENTOO_CLASSPATH_EXTRA} ]] && \

Legend:
Removed from v.1.119  
changed lines
  Added in v.1.120

  ViewVC Help
Powered by ViewVC 1.1.20