/[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.156 Revision 1.157
4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org> 4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
5# Copyright (c) 2004-2011, Gentoo Foundation 5# Copyright (c) 2004-2011, 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.156 2014/04/09 21:55:12 radhermit Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.157 2015/04/04 21:04:49 chewi Exp $
10 10
11# @ECLASS: java-utils-2.eclass 11# @ECLASS: java-utils-2.eclass
12# @MAINTAINER: 12# @MAINTAINER:
13# java@gentoo.org 13# java@gentoo.org
14# @AUTHOR: 14# @AUTHOR:
19# java-pkg-opt-2.eclass and java-ant-2 eclass, as well as from ebuilds. 19# java-pkg-opt-2.eclass and java-ant-2 eclass, as well as from ebuilds.
20# 20#
21# This eclass should not be inherited this directly from an ebuild. Instead, 21# This eclass should not be inherited this directly from an ebuild. Instead,
22# you should inherit java-pkg-2 for Java packages or java-pkg-opt-2 for packages 22# you should inherit java-pkg-2 for Java packages or java-pkg-opt-2 for packages
23# that have optional Java support. In addition you can inherit java-ant-2 for 23# that have optional Java support. In addition you can inherit java-ant-2 for
24# Ant-based packages. 24# Ant-based packages.
25inherit eutils versionator multilib 25inherit eutils versionator multilib
26 26
27IUSE="elibc_FreeBSD" 27IUSE="elibc_FreeBSD"
28 28
29# Make sure we use java-config-2 29# Make sure we use java-config-2
1806# @USAGE: <ant_build_target(s)> 1806# @USAGE: <ant_build_target(s)>
1807# @DESCRIPTION: 1807# @DESCRIPTION:
1808# Ant wrapper function. Will use the appropriate compiler, based on user-defined 1808# Ant wrapper function. Will use the appropriate compiler, based on user-defined
1809# compiler. Will also set proper ANT_TASKS from the variable ANT_TASKS, 1809# compiler. Will also set proper ANT_TASKS from the variable ANT_TASKS,
1810# variables: 1810# variables:
1811# 1811#
1812# @CODE 1812# @CODE
1813# Variables: 1813# Variables:
1814# EANT_GENTOO_CLASSPATH - calls java-pkg_getjars for the value and adds to the 1814# EANT_GENTOO_CLASSPATH - calls java-pkg_getjars for the value and adds to the
1815# gentoo.classpath property. Be sure to call java-ant_rewrite-classpath in src_unpack. 1815# gentoo.classpath property. Be sure to call java-ant_rewrite-classpath in src_unpack.
1816# EANT_NEEDS_TOOLS - add tools.jar to the gentoo.classpath. Should only be used 1816# EANT_NEEDS_TOOLS - add tools.jar to the gentoo.classpath. Should only be used
1960 die "java-pkg_javac-args failed" 1960 die "java-pkg_javac-args failed"
1961 fi 1961 fi
1962 1962
1963 [[ -n ${JAVA_PKG_DEBUG} ]] && echo ${compiler_executable} ${javac_args} "${@}" 1963 [[ -n ${JAVA_PKG_DEBUG} ]] && echo ${compiler_executable} ${javac_args} "${@}"
1964 ${compiler_executable} ${javac_args} "${@}" || die "ejavac failed" 1964 ${compiler_executable} ${javac_args} "${@}" || die "ejavac failed"
1965}
1966
1967# @FUNCTION: ejavadoc
1968# @USAGE: <javadoc_arguments>
1969# @DESCRIPTION:
1970# javadoc wrapper function. Will set some flags based on the VM version
1971# due to strict javadoc rules in 1.8.
1972ejavadoc() {
1973 debug-print-function ${FUNCNAME} $*
1974
1975 local javadoc_args=""
1976
1977 if java-pkg_is-vm-version-ge "1.8" ; then
1978 javadoc_args="-Xdoclint:none"
1979 fi
1980
1981 javadoc ${javadoc_args} "${@}" || die "ejavadoc failed"
1965} 1982}
1966 1983
1967# @FUNCTION: java-pkg_filter-compiler 1984# @FUNCTION: java-pkg_filter-compiler
1968# @USAGE: <compiler(s)_to_filter> 1985# @USAGE: <compiler(s)_to_filter>
1969# @DESCRIPTION: 1986# @DESCRIPTION:

Legend:
Removed from v.1.156  
changed lines
  Added in v.1.157

  ViewVC Help
Powered by ViewVC 1.1.20