/[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.34 Revision 1.35
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.34 2008/06/19 19:48:40 ali_bush Exp $ 17# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.35 2008/06/20 10:32:15 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
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 [[ -x "${gen2_1}" ]]; then 412 elif [[ -x "${gen2_1}" ]]; then
413 ${gen2} "${@}" || die "${gen2_1} failed" 413 ${gen2_1} "${@}" || 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"
418 fi 418 fi

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

  ViewVC Help
Powered by ViewVC 1.1.20