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 05:29:56 UTC
svn commit: r660097 -
/servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/DeploySupport.java
Author: ffang
Date: Sun May 25 20:29:56 2008
New Revision: 660097
URL: http://svn.apache.org/viewvc?rev=660097&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/container/DeploySupport.java
Modified: servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/DeploySupport.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/DeploySupport.java?rev=660097&r1=660096&r2=660097&view=diff
==============================================================================
--- servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/DeploySupport.java (original)
+++ servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/DeploySupport.java Sun May 25 20:29:56 2008
@@ -111,7 +111,13 @@
public String getHomeDir() {
if (homeDir == null) {
homeDir = System.getProperty("user.home", "~");
+ String os = System.getProperty("os.name");
+ if (os.startsWith("Windows")) {
+ homeDir = homeDir.replace('\\', '/');
+ homeDir = homeDir.replaceAll(" ", "%20");
+ }
}
+
return homeDir;
}