You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ff...@apache.org on 2008/05/26 10:00:25 UTC
svn commit: r660118 -
/servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AutoDeploymentService.java
Author: ffang
Date: Mon May 26 01:00:24 2008
New Revision: 660118
URL: http://svn.apache.org/viewvc?rev=660118&view=rev
Log:
[SM-1368]Bug with backslashes in SMX 3.2.2-SNAPSHOT under Windows
Modified:
servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AutoDeploymentService.java
Modified: servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AutoDeploymentService.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AutoDeploymentService.java?rev=660118&r1=660117&r2=660118&view=diff
==============================================================================
--- servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AutoDeploymentService.java (original)
+++ servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AutoDeploymentService.java Mon May 26 01:00:24 2008
@@ -562,6 +562,12 @@
File file = null;
try {
if (location.startsWith(filePrefix)) {
+ String os = System.getProperty("os.name");
+ if (os.startsWith("Windows")) {
+
+ location = location.replace('\\', '/');
+ location = location.replaceAll(" ", "%20");
+ }
URI uri = new URI(location);
file = new File(uri);
} else {