Bug#552032: ant: xslt task cannot use Commons resolver
brian m. carlson
sandals at crustytoothpaste.ath.cx
Thu Oct 22 19:52:45 UTC 2009
Package: ant
Version: 1.7.1-4
Severity: normal
I use ant to build my website, which includes transforming DocBook 5
into XHTML via ant's xslt task. For several reasons, I want to use
catalogs. Consequently, I've created a file called .antrc in my home
directory and included the following line in it:
LOCALCLASSPATH="/usr/share/java/xml-commons-resolver-1.1.jar:/etc/xml/resolver"
However, ant still does not use the resolver. In
org.apache.tools.ant.types.XMLCatalog, getCatalogResolver seems to fail
at the line (approximately line 510):
clazz = Class.forName(APACHE_RESOLVER, true, baseResolverLoader);
with the debugging message:
Apache resolver library not found, internal resolver will be used
Failed to load Apache resolver: java.lang.ClassNotFoundException: org.apache.tools.ant.types.resolver.ApacheCatalogResolver
My strong preference is that the Commons resolver always be used if it
is installed on the machine; there really is no reason not to. However,
if that is judged to be infeasible for whatever reason, I'd prefer that
it at least work in some case and have it be documented how to make it
work.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ant depends on:
ii default-jre-headless [jav 1.6-33 Standard Java or Java compatible R
ii gcj-4.4-jre-headless [jav 4.4.1-6 Java runtime environment using GIJ
ii gcj-jre-headless [java2-r 4:4.3.3-9+nmu1 Java runtime environment using GIJ
ii gij-4.3 [java2-runtime-he 4.3.4-4 The GNU Java bytecode interpreter
ii java-gcj-compat-headless 1.0.80-5.1 Java runtime environment using GIJ
ii libxerces2-java 2.9.1-4 Validating XML parser for Java wit
ii openjdk-6-jre-headless [j 6b16-1.6.1-2 OpenJDK Java runtime, using Hotspo
Versions of packages ant recommends:
pn ant-gcj <none> (no description available)
ii ant-optional 1.7.1-4 Java based build tool like make -
Versions of packages ant suggests:
ii ant-doc 1.7.1-4 Java based build tool like make -
ii default-jdk [java-sdk] 1.6-33 Standard Java or Java compatible D
ii gcj-4.3 [java-compiler] 4.3.4-4 The GNU compiler for Java(TM)
ii gcj-jdk [java-sdk] 4:4.3.3-9+nmu1 gcj and classpath development tool
ii java-gcj-compat-dev [java 1.0.80-5.1 Java runtime environment with GCJ
ii openjdk-6-jdk [java-sdk] 6b16-1.6.1-2 OpenJDK Development Kit (JDK)
-- no debconf information
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20091022/1932e536/attachment.pgp>
More information about the pkg-java-maintainers
mailing list