Author: michiel
Date: 2009-05-29 15:24:43 +0200 (Fri, 29 May 2009)
New Revision: 35511

Modified:
   mmbase/trunk/src/org/mmbase/util/SerializableInputStream.java
Log:
if file is only changed, it should be recreated

Modified: mmbase/trunk/src/org/mmbase/util/SerializableInputStream.java
===================================================================
--- mmbase/trunk/src/org/mmbase/util/SerializableInputStream.java       
2009-05-29 12:59:18 UTC (rev 35510)
+++ mmbase/trunk/src/org/mmbase/util/SerializableInputStream.java       
2009-05-29 13:24:43 UTC (rev 35511)
@@ -172,6 +172,8 @@
         try {
             if (file == null) {
                 file = File.createTempFile(getClass().getName(), this.name);
+            }
+            if (! file.exists()) {
                 FileOutputStream os = new FileOutputStream(file);
                 IOUtil.copy(wrapped, os);
                 os.close();

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to