You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by sa...@apache.org on 2002/01/16 16:26:03 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/impl XMLEntityManager.java
sandygao 02/01/16 07:26:02
Modified: java/src/org/apache/xerces/impl XMLEntityManager.java
Log:
Fixing bug [2703]: change network path "\\host\blah" to "file://host/blah", so that we can find other file paths relative to this one.
Revision Changes Path
1.17 +6 -1 xml-xerces/java/src/org/apache/xerces/impl/XMLEntityManager.java
Index: XMLEntityManager.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/XMLEntityManager.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- XMLEntityManager.java 4 Jan 2002 23:27:49 -0000 1.16
+++ XMLEntityManager.java 16 Jan 2002 15:26:02 -0000 1.17
@@ -113,7 +113,7 @@
* @author Andy Clark, IBM
* @author Arnaud Le Hors, IBM
*
- * @version $Id: XMLEntityManager.java,v 1.16 2002/01/04 23:27:49 neilg Exp $
+ * @version $Id: XMLEntityManager.java,v 1.17 2002/01/16 15:26:02 sandygao Exp $
*/
public class XMLEntityManager
implements XMLComponent, XMLEntityResolver {
@@ -1358,11 +1358,16 @@
// Windows fix
if (str.length() >= 2) {
char ch1 = str.charAt(1);
+ // change "C:blah" to "/C:blah"
if (ch1 == ':') {
char ch0 = Character.toUpperCase(str.charAt(0));
if (ch0 >= 'A' && ch0 <= 'Z') {
str = "/" + str;
}
+ }
+ // change "//blah" to "file://blah"
+ else if (ch1 == '/' && str.charAt(0) == '/') {
+ str = "file:" + str;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org