summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2008-06-18 10:27:22 +0000
committerAlistair Bush <ali_bush@gentoo.org>2008-06-18 10:27:22 +0000
commit3135ecdaa895ad0308a00e48f68370d201c6edd8 (patch)
tree530f868e7157833a3cecb5bf65182dc7fffc421b /eclass/java-ant-2.eclass
parentVersion bumps #228015. (diff)
downloadhistorical-3135ecdaa895ad0308a00e48f68370d201c6edd8.tar.gz
historical-3135ecdaa895ad0308a00e48f68370d201c6edd8.tar.bz2
historical-3135ecdaa895ad0308a00e48f68370d201c6edd8.zip
Prepare eclasses to support javatoolkit move.
Diffstat (limited to 'eclass/java-ant-2.eclass')
-rw-r--r--eclass/java-ant-2.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/java-ant-2.eclass b/eclass/java-ant-2.eclass
index d76321dd90c9..2befd7002547 100644
--- a/eclass/java-ant-2.eclass
+++ b/eclass/java-ant-2.eclass
@@ -14,7 +14,7 @@
#
# Licensed under the GNU General Public License, v2
#
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.32 2008/04/15 09:33:36 ali_bush Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.33 2008/06/18 10:27:22 ali_bush Exp $
inherit java-utils-2
@@ -240,6 +240,11 @@ java-ant_bsfix_files() {
# for javadoc target and all in one pass, we need the new rewriter.
local rewriter3="/usr/share/javatoolkit/xml-rewrite-3.py"
+
+ if [[ ! -f ${rewriter3} ]]; then
+ rewriter3="/usr/$(get_libdir)/javatoolkit/bin/xml-rewrite-3.py"
+ fi
+
if [[ ! -f ${rewriter3} ]]; then
debug-print "Using second generation rewriter"
eval echo "Rewriting source attributes" ${output}
@@ -400,9 +405,12 @@ java-ant_ignore-system-classes() {
# ------------------------------------------------------------------------------
java-ant_xml-rewrite() {
local gen2="/usr/bin/xml-rewrite-2.py"
+ local gen2_1="/usr/$(get_libdir)/javatoolkit/bin/xml-rewrite-2.py"
# gen1 is deprecated
if [[ -x "${gen2}" ]]; then
${gen2} "${@}" || die "${gen2} failed"
+ elif [[ "${gen2_1}" ]]; then
+ ${gen2} "${@}" || die "${gen2_1} failed"
else
eerror "No binary for rewriting found."
eerror "Do you have dev-java/javatoolkit installed?"