/[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.63 Revision 1.64
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.63 2007/03/03 20:37:35 betelgeuse Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.64 2007/03/05 22:56:25 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
1797# 1797#
1798# ----------------------------------------------------------------------------- 1798# -----------------------------------------------------------------------------
1799java-pkg_init() { 1799java-pkg_init() {
1800 unset JAVAC 1800 unset JAVAC
1801 unset JAVA_HOME 1801 unset JAVA_HOME
1802
1803 # People do all kinds of weird things.
1804 # http://forums.gentoo.org/viewtopic-p-3943166.html
1805 local silense="${SILENCE_JAVA_OPTIONS_WARNING}"
1806 local accept="${I_WANT_GLOBAL_JAVA_OPTIONS}"
1807 if [[ -n ${_JAVA_OPTIONS} && -z ${accept} && -z ${silense} ]]; then
1808 ewarn "_JAVA_OPTIONS changes what java -version outputs at least for"
1809 ewarn "sun-jdk vms and and as such break configure scripts that"
1810 ewarn "use it (for example app-office/openoffice) so we filter it out."
1811 ewarn "Use SILENCE_JAVA_OPTIONS_WARNING=true in the environment (use"
1812 ewarn "make.conf for example) to silence this warning or"
1813 ewarn "I_WANT_GLOBAL_JAVA_OPTIONS to not filter it."
1814 fi
1815
1816 if [[ -z ${accept} ]]; then
1817 unset _JAVA_OPTIONS
1818 # phase hooks make this run many times without this
1819 I_WANT_GLOBAL_JAVA_OPTIONS="true"
1820 fi
1821
1802 java-pkg_init_paths_ 1822 java-pkg_init_paths_
1803 java-pkg_switch-vm 1823 java-pkg_switch-vm
1804 PATH=${JAVA_HOME}/bin:${PATH} 1824 PATH=${JAVA_HOME}/bin:${PATH}
1805 1825
1806 # TODO we will probably want to set JAVAC and JAVACFLAGS 1826 # TODO we will probably want to set JAVAC and JAVACFLAGS

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

  ViewVC Help
Powered by ViewVC 1.1.20