You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by jk...@apache.org on 2006/10/31 16:40:36 UTC
svn commit: r469531 -
/incubator/woden/trunk/java/test/javax/xml/namespace/QNameTest.java
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: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org