axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r463413 - /webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/deployment/RepositoryListener.java
Date Thu, 12 Oct 2006 20:21:08 GMT
Author: dims
Date: Thu Oct 12 13:21:07 2006
New Revision: 463413

URL: http://svn.apache.org/viewvc?view=rev&rev=463413
Log:
fix for AXIS2-1359 - Broken RepositoryListener.getLocation method

Modified:
    webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/deployment/RepositoryListener.java

Modified: webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/deployment/RepositoryListener.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/deployment/RepositoryListener.java?view=diff&rev=463413&r1=463412&r2=463413
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/deployment/RepositoryListener.java
(original)
+++ webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/deployment/RepositoryListener.java
Thu Oct 12 13:21:07 2006
@@ -24,7 +24,7 @@
 import org.apache.commons.logging.LogFactory;
 
 import java.io.File;
-
+import java.net.URLDecoder;
 public class RepositoryListener implements DeploymentConstants {
     private static final Log log = LogFactory.getLog(RepositoryListener.class);
     private DeploymentEngine deploymentEngine;
@@ -138,7 +138,8 @@
                 location = url.toString();
             }
             if (location.startsWith("file")) {
-                java.io.File file = new java.io.File(url.getFile());
+                java.io.File file = new java.io.File(java.net.URLDecoder.decode(url.getPath()).replace('/',
+                        File.separatorChar).replace('|', ':'));
                 return file.getAbsolutePath();
             } else {
                 return url.toString();



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


Mime
View raw message