/[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.125 Revision 1.126
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.125 2009/03/27 20:58:57 betelgeuse Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.126 2009/03/31 19:19:20 betelgeuse 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
365 if [[ ${jar} = *\** ]]; then 365 if [[ ${jar} = *\** ]]; then
366 eerror "The argument ${jar} to ${FUNCNAME}" 366 eerror "The argument ${jar} to ${FUNCNAME}"
367 eerror "has * in it. If you want it to glob in" 367 eerror "has * in it. If you want it to glob in"
368 eerror '${D} add ${D} to the argument.' 368 eerror '${D} add ${D} to the argument.'
369 fi 369 fi
370 debug-print "${jar} or ${D}${jar} not found"
370 die "${jar} does not exist" 371 die "${jar} does not exist"
371 fi 372 fi
372 done 373 done
373 374
374 java-pkg_do_write_ 375 java-pkg_do_write_
2447# 2448#
2448# @return 0 - function is declared 2449# @return 0 - function is declared
2449# @return 1 - function is undeclared 2450# @return 1 - function is undeclared
2450# ------------------------------------------------------------------------------ 2451# ------------------------------------------------------------------------------
2451java-pkg_func-exists() { 2452java-pkg_func-exists() {
2452 if [[ -n "$(declare -f ${1})" ]]; then 2453 declare -F ${1} > /dev/null
2453 return 0
2454 else
2455 return 1
2456 fi
2457} 2454}
2458 2455
2459# ------------------------------------------------------------------------------ 2456# ------------------------------------------------------------------------------
2460# @internal-function java-pkg_setup-vm 2457# @internal-function java-pkg_setup-vm
2461# 2458#

Legend:
Removed from v.1.125  
changed lines
  Added in v.1.126

  ViewVC Help
Powered by ViewVC 1.1.20