Author: jkaputin
Date: Tue Oct 31 07:40:36 2006
New Revision: 469531
URL: http://svn.apache.org/viewvc?view=rev&rev=469531
Log:
[WODEN-63] Applied patch contributed by Graham Turrel
to resolve %20 to spaces in path names by using
new File(new URI(url.getFile()).getPath());
Modified:
incubator/woden/trunk/java/test/javax/xml/namespace/QNameTest.java
Modified: incubator/woden/trunk/java/test/javax/xml/namespace/QNameTest.java
URL:
http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/javax/xml/namespace/QNameTest.java?view=diff&rev=469531&r1=469530&r2=469531
==============================================================================
--- incubator/woden/trunk/java/test/javax/xml/namespace/QNameTest.java
(original)
+++ incubator/woden/trunk/java/test/javax/xml/namespace/QNameTest.java Tue Oct
31 07:40:36 2006
@@ -22,6 +22,7 @@
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
+import java.net.URI;
import java.net.URL;
import junit.framework.Test;
@@ -459,7 +460,7 @@
URL url =
getClass().getClassLoader().getResource("javax/xml/namespace/serialized_QName_no_prefix");
- File f = new File(url.getFile().replaceAll("%20", " "));
+ File f = new File(new URI(url.getFile()).getPath());
ObjectInputStream ois =
new ObjectInputStream(new FileInputStream(f));
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]