ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1311662 - /ace/trunk/ace-obr-storage/src/main/java/org/apache/ace/obr/storage/file/BundleFileStore.java
Date Tue, 10 Apr 2012 10:12:25 GMT
Author: bramk
Date: Tue Apr 10 10:12:25 2012
New Revision: 1311662

URL: http://svn.apache.org/viewvc?rev=1311662&view=rev
Log:
ACE-254 Close outputstream before trying to move/delete the file

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

Modified: ace/trunk/ace-obr-storage/src/main/java/org/apache/ace/obr/storage/file/BundleFileStore.java
URL: http://svn.apache.org/viewvc/ace/trunk/ace-obr-storage/src/main/java/org/apache/ace/obr/storage/file/BundleFileStore.java?rev=1311662&r1=1311661&r2=1311662&view=diff
==============================================================================
--- ace/trunk/ace-obr-storage/src/main/java/org/apache/ace/obr/storage/file/BundleFileStore.java
(original)
+++ ace/trunk/ace-obr-storage/src/main/java/org/apache/ace/obr/storage/file/BundleFileStore.java
Tue Apr 10 10:12:25 2012
@@ -197,6 +197,7 @@ public class BundleFileStore implements 
                 fos.write(buffer, 0, read);
             }
             fos.flush();
+            fos.close();
 
             if (!tempFile.renameTo(dest)) {
                 if (!moveFile(tempFile, dest)) {



Mime
View raw message