https://issues.apache.org/bugzilla/show_bug.cgi?id=48915
Summary: ant -diagnostics fails when xerces or xalan are not
available
Product: Ant
Version: 1.8.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P2
Component: Core
AssignedTo: [email protected]
ReportedBy: [email protected]
This is the output of ant-1.7.1 with no xerces/xalan on classpath:
...
XML Parser information
-------------------------------------------
XML Parser : com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
XML Parser Location: /opt/sun-jdk-1.6.0.18/jre/lib/rt.jar
Namespace-aware parser :
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: /opt/sun-jdk-1.6.0.18/jre/lib/rt.jar
...
This occurs with 1.8.0:
...
-------------------------------------------
XML Parser information
-------------------------------------------
[ends with error code 1]
This is with 1.8.0 when xerces is available but xalan not:
...
-------------------------------------------
XML Parser information
-------------------------------------------
XML Parser : org.apache.xerces.jaxp.SAXParserImpl
XML Parser Location: file:/usr/share/xerces-2/lib/xercesImpl.jar
Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: file:/usr/share/xerces-2/lib/xercesImpl.jar
-------------------------------------------
XSLT Processor information
-------------------------------------------
[ends with error code 1]
I think this is a regression? 1.7.1 could detect the XML parser bundled in the
JDK just fine, 1.8.0 fails (although it works just fine otherwise, only
-diagnostics fails). And the absence of xalan also should not be a reason to
abruptly end the diagnostics, especially if it's an optional library not
bundled in standard -bin download (so it fails out of the box) ?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.