/[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.58 Revision 1.59
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.58 2007/02/28 10:45:20 betelgeuse Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.59 2007/03/01 12:53:38 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
765# Example: get a specific jar from xerces slot 2, and name it diffrently 765# Example: get a specific jar from xerces slot 2, and name it diffrently
766# java-pkg_jar-from xerces-2 xml-apis.jar xml.jar 766# java-pkg_jar-from xerces-2 xml-apis.jar xml.jar
767# Example: get junit.jar which is needed only for building 767# Example: get junit.jar which is needed only for building
768# java-pkg_jar-from --build-only junit junit.jar 768# java-pkg_jar-from --build-only junit junit.jar
769# 769#
770# @param $opt 770# @param $opt
771# --build-only - makes the jar(s) not added into package.env DEPEND line. 771# --build-only - makes the jar(s) not added into package.env DEPEND line.
772# (assumed automatically when called inside src_test) 772# (assumed automatically when called inside src_test)
773# --with-dependencies - get jars also from requested package's dependencies 773# --with-dependencies - get jars also from requested package's dependencies
774# transitively. 774# transitively.
775# --into $dir - symlink jar(s) into $dir (must exist) instead of . 775# --into $dir - symlink jar(s) into $dir (must exist) instead of .
783 debug-print-function ${FUNCNAME} $* 783 debug-print-function ${FUNCNAME} $*
784 784
785 local build_only="" 785 local build_only=""
786 local destdir="." 786 local destdir="."
787 local deep="" 787 local deep=""
788 788
789 [[ "${EBUILD_PHASE}" == "test" ]] && build_only="true" 789 [[ "${EBUILD_PHASE}" == "test" ]] && build_only="true"
790 790
791 while [[ "${1}" == --* ]]; do 791 while [[ "${1}" == --* ]]; do
792 if [[ "${1}" = "--build-only" ]]; then 792 if [[ "${1}" = "--build-only" ]]; then
793 build_only="true" 793 build_only="true"
871# Example: Get the classpath for xerces-2 and xalan, 871# Example: Get the classpath for xerces-2 and xalan,
872# java-pkg_getjars xerces-2,xalan 872# java-pkg_getjars xerces-2,xalan
873# Example Return: 873# Example Return:
874# /usr/share/xerces-2/lib/xml-apis.jar:/usr/share/xerces-2/lib/xmlParserAPIs.jar:/usr/share/xalan/lib/xalan.jar 874# /usr/share/xerces-2/lib/xml-apis.jar:/usr/share/xerces-2/lib/xmlParserAPIs.jar:/usr/share/xalan/lib/xalan.jar
875# 875#
876# @param $opt 876# @param $opt
877# --build-only - makes the jar(s) not added into package.env DEPEND line. 877# --build-only - makes the jar(s) not added into package.env DEPEND line.
878# (assumed automatically when called inside src_test) 878# (assumed automatically when called inside src_test)
879# --with-dependencies - get jars also from requested package's dependencies 879# --with-dependencies - get jars also from requested package's dependencies
880# transitively. 880# transitively.
881# @param $1 - list of packages to get jars from 881# @param $1 - list of packages to get jars from
884java-pkg_getjars() { 884java-pkg_getjars() {
885 debug-print-function ${FUNCNAME} $* 885 debug-print-function ${FUNCNAME} $*
886 886
887 local build_only="" 887 local build_only=""
888 local deep="" 888 local deep=""
889 889
890 [[ "${EBUILD_PHASE}" == "test" ]] && build_only="true" 890 [[ "${EBUILD_PHASE}" == "test" ]] && build_only="true"
891 891
892 while [[ "${1}" == --* ]]; do 892 while [[ "${1}" == --* ]]; do
893 if [[ "${1}" = "--build-only" ]]; then 893 if [[ "${1}" = "--build-only" ]]; then
894 build_only="true" 894 build_only="true"
947# ------------------------------------------------------------------------------ 947# ------------------------------------------------------------------------------
948java-pkg_getjar() { 948java-pkg_getjar() {
949 debug-print-function ${FUNCNAME} $* 949 debug-print-function ${FUNCNAME} $*
950 950
951 local build_only="" 951 local build_only=""
952 952
953 [[ "${EBUILD_PHASE}" == "test" ]] && build_only="true" 953 [[ "${EBUILD_PHASE}" == "test" ]] && build_only="true"
954 954
955 while [[ "${1}" == --* ]]; do 955 while [[ "${1}" == --* ]]; do
956 if [[ "${1}" = "--build-only" ]]; then 956 if [[ "${1}" = "--build-only" ]]; then
957 build_only="true" 957 build_only="true"
1773 # When users have crazy classpaths some packages can fail to compile. 1773 # When users have crazy classpaths some packages can fail to compile.
1774 # and everything should work with empty CLASSPATH. 1774 # and everything should work with empty CLASSPATH.
1775 # This also helps prevent unexpected dependencies on random things 1775 # This also helps prevent unexpected dependencies on random things
1776 # from the CLASSPATH. 1776 # from the CLASSPATH.
1777 unset CLASSPATH 1777 unset CLASSPATH
1778 1778
1779 # Unset external ANT_ stuff 1779 # Unset external ANT_ stuff
1780 unset ANT_TASKS 1780 unset ANT_TASKS
1781 unset ANT_OPTS 1781 unset ANT_OPTS
1782} 1782}
1783 1783

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

  ViewVC Help
Powered by ViewVC 1.1.20