/[gentoo-x86]/eclass/java-ant-2.eclass
Gentoo

Diff of /eclass/java-ant-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.47 Revision 1.48
12# and xml-rewrite.py because they were so slow 12# and xml-rewrite.py because they were so slow
13# Petteri Räty (betelgeuse@gentoo.org) 13# Petteri Räty (betelgeuse@gentoo.org)
14# 14#
15# Licensed under the GNU General Public License, v2 15# Licensed under the GNU General Public License, v2
16# 16#
17# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.47 2010/02/01 09:38:44 caster Exp $ 17# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.48 2010/02/12 23:51:44 caster Exp $
18 18
19inherit java-utils-2 19inherit java-utils-2
20 20
21# This eclass provides functionality for Java packages which use 21# This eclass provides functionality for Java packages which use
22# ant to build. In particular, it will attempt to fix build.xml files, so that 22# ant to build. In particular, it will attempt to fix build.xml files, so that
475 local version="${1}" 475 local version="${1}"
476 local file="${2-build.xml}" 476 local file="${2-build.xml}"
477 local extra_before="${3}" 477 local extra_before="${3}"
478 local extra_after="${4}" 478 local extra_after="${4}"
479 479
480 local bcp 480 local bcp="$(java-pkg_get-bootclasspath "${version}")"
481 case "${version}" in 481
482 auto)
483 bcp="$(java-config -g BOOTCLASSPATH)"
484 ;;
485 1.5)
486 bcp="$(java-pkg_getjars --build-only gnu-classpath-0.98)"
487 ;;
488 *)
489 eerror "unknown parameter of java-ant_rewrite-bootclasspath"
490 die "unknown parameter of java-ant_rewrite-bootclasspath"
491 ;;
492 esac
493 if [[ -n "${extra_before}" ]]; then 482 if [[ -n "${extra_before}" ]]; then
494 bcp="${extra_before}:${bcp}" 483 bcp="${extra_before}:${bcp}"
495 fi 484 fi
496 if [[ -n "${extra_after}" ]]; then 485 if [[ -n "${extra_after}" ]]; then
497 bcp="${bcp}:${extra_after}" 486 bcp="${bcp}:${extra_after}"

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

  ViewVC Help
Powered by ViewVC 1.1.20