/[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.33 Revision 1.34
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.33 2008/06/18 10:27:22 ali_bush Exp $ 17# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.34 2008/06/19 19:48:40 ali_bush 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
407 local gen2="/usr/bin/xml-rewrite-2.py" 407 local gen2="/usr/bin/xml-rewrite-2.py"
408 local gen2_1="/usr/$(get_libdir)/javatoolkit/bin/xml-rewrite-2.py" 408 local gen2_1="/usr/$(get_libdir)/javatoolkit/bin/xml-rewrite-2.py"
409 # gen1 is deprecated 409 # gen1 is deprecated
410 if [[ -x "${gen2}" ]]; then 410 if [[ -x "${gen2}" ]]; then
411 ${gen2} "${@}" || die "${gen2} failed" 411 ${gen2} "${@}" || die "${gen2} failed"
412 elif [[ "${gen2_1}" ]]; then 412 elif [[ -x "${gen2_1}" ]]; then
413 ${gen2} "${@}" || die "${gen2_1} failed" 413 ${gen2} "${@}" || die "${gen2_1} failed"
414 else 414 else
415 eerror "No binary for rewriting found." 415 eerror "No binary for rewriting found."
416 eerror "Do you have dev-java/javatoolkit installed?" 416 eerror "Do you have dev-java/javatoolkit installed?"
417 die "xml-rewrite not found" 417 die "xml-rewrite not found"

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

  ViewVC Help
Powered by ViewVC 1.1.20