From: Wolfgang M. M. <wol...@us...> - 2004-09-12 13:12:43
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/backup In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4679/src/org/exist/backup Modified Files: Restore.java Log Message: Replaced all occurrences of new URI(file.toURL().toString()).toASCIIString(); to file.toURI().toASCIIString(); (patch by Piotr). Index: Restore.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/backup/Restore.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Restore.java 21 Jun 2004 15:27:37 -0000 1.11 --- Restore.java 12 Sep 2004 13:12:22 -0000 1.12 *************** *** 123,129 **** while(!stack.isEmpty()) { contents = (File) stack.pop(); ! String sysId = contents.toURL().toString(); ! InputSource is = new InputSource(new FileInputStream(contents)); ! is.setSystemId(sysId); is.setEncoding("UTF-8"); System.out.println("restoring " + sysId); --- 123,128 ---- while(!stack.isEmpty()) { contents = (File) stack.pop(); ! String sysId = contents.toURI().toASCIIString(); ! InputSource is = new InputSource(sysId); is.setEncoding("UTF-8"); System.out.println("restoring " + sysId); |