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 hu...@apache.org on 2006/07/25 16:36:52 UTC

svn commit: r425405 - /incubator/woden/java/test/org/apache/woden/tests/W3CFileRepository.java

Author: hughesj
Date: Tue Jul 25 07:36:51 2006
New Revision: 425405

URL: http://svn.apache.org/viewvc?rev=425405&view=rev
Log:
Convert to URI before URL to ensure spaces are encoded

Modified:
    incubator/woden/java/test/org/apache/woden/tests/W3CFileRepository.java

Modified: incubator/woden/java/test/org/apache/woden/tests/W3CFileRepository.java
URL: http://svn.apache.org/viewvc/incubator/woden/java/test/org/apache/woden/tests/W3CFileRepository.java?rev=425405&r1=425404&r2=425405&view=diff
==============================================================================
--- incubator/woden/java/test/org/apache/woden/tests/W3CFileRepository.java (original)
+++ incubator/woden/java/test/org/apache/woden/tests/W3CFileRepository.java Tue Jul 25 07:36:51 2006
@@ -62,7 +62,7 @@
         File localFile = new File(localPath);
         if (localFile.exists()) {
             try {
-                return localFile.toURL().toString();
+                return localFile.toURI().toURL().toString();
             } catch (MalformedURLException mue) {
                 System.err.println("Got MalformedURLException trying to create a URL from " + localPath);
                 return path;



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