commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skitch...@apache.org
Subject cvs commit: jakarta-commons/digester/src/java/org/apache/commons/digester Digester.java
Date Sat, 18 Sep 2004 09:51:03 GMT
skitching    2004/09/18 02:51:03

  Modified:    digester/src/java/org/apache/commons/digester Digester.java
  Log:
  Fix problem with parse(File) method when file is an absolute path on
  a Windows machine. Solution provided by John Taylor (see bugzilla #28739)
  
  Revision  Changes    Path
  1.107     +2 -2      jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java
  
  Index: Digester.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java,v
  retrieving revision 1.106
  retrieving revision 1.107
  diff -u -r1.106 -r1.107
  --- Digester.java	18 Sep 2004 09:17:28 -0000	1.106
  +++ Digester.java	18 Sep 2004 09:51:03 -0000	1.107
  @@ -1552,7 +1552,7 @@
   
           configure();
           InputSource input = new InputSource(new FileInputStream(file));
  -        input.setSystemId("file://" + file.getAbsolutePath());
  +        input.setSystemId(file.toURL().toString());
           getXMLReader().parse(input);
           return (root);
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message