ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1483726 - /ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/storage/file/BundleFileStore.java
Date Fri, 17 May 2013 10:23:32 GMT
Author: marrs
Date: Fri May 17 10:23:31 2013
New Revision: 1483726

URL: http://svn.apache.org/r1483726
Log:
ACE-351 applied the suggested fix. Also no longer uses File.separator because we now always
assume forward slashes (via the conversion to URI).

Modified:
    ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/storage/file/BundleFileStore.java

Modified: ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/storage/file/BundleFileStore.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/storage/file/BundleFileStore.java?rev=1483726&r1=1483725&r2=1483726&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/storage/file/BundleFileStore.java
(original)
+++ ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/storage/file/BundleFileStore.java
Fri May 17 10:23:31 2013
@@ -113,8 +113,9 @@ public class BundleFileStore implements 
         }
 
         moveFile(tempFile, storeLocation);
-        String filePath = storeLocation.getAbsolutePath().substring(getWorkingDir().getAbsolutePath().length());
-        if(filePath.startsWith(File.separator)){
+        
+        String filePath = storeLocation.toURI().toString().substring(getWorkingDir().toURI().toString().length());
+        if (filePath.startsWith("/")) {
             filePath = filePath.substring(1);
         }
         return filePath;



Mime
View raw message