maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r1034856 - /maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractXmlParser.java
Date Sat, 13 Nov 2010 20:09:20 GMT
Author: dennisl
Date: Sat Nov 13 20:09:20 2010
New Revision: 1034856

URL: http://svn.apache.org/viewvc?rev=1034856&view=rev
Log:
o Improve error message when searching for system entities.

Modified:
    maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractXmlParser.java

Modified: maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractXmlParser.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractXmlParser.java?rev=1034856&r1=1034855&r2=1034856&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractXmlParser.java
(original)
+++ maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractXmlParser.java
Sat Nov 13 20:09:20 2010
@@ -724,14 +724,16 @@ public abstract class AbstractXmlParser
                     {
                         // Doxia XSDs are included in the jars, so try to find the resource
systemName from
                         // the classpath...
-                        URL url = getClass().getResource( "/" + systemName );
+                        String resource = "/" + systemName;
+                        URL url = getClass().getResource( resource );
                         if ( url != null )
                         {
                             res = toByteArray( url );
                         }
                         else
                         {
-                            throw new SAXException( "Could not find the SYSTEM entity: "
+ systemId );
+                            throw new SAXException( "Could not find the SYSTEM entity: "
+ systemId
+                            + " because '" + resource + "' is not available of the classpath."
);
                         }
                     }
                     else



Mime
View raw message