You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by oz...@apache.org on 2007/06/20 10:28:04 UTC

svn commit: r548989 - /jakarta/slide/trunk/src/share/org/apache/slide/content/NodeRevisionContent.java

Author: ozeigermann
Date: Wed Jun 20 01:28:03 2007
New Revision: 548989

URL: http://svn.apache.org/viewvc?view=rev&rev=548989
Log:
Temporary files now will be deleted upon JVM shutdown

Modified:
    jakarta/slide/trunk/src/share/org/apache/slide/content/NodeRevisionContent.java

Modified: jakarta/slide/trunk/src/share/org/apache/slide/content/NodeRevisionContent.java
URL: http://svn.apache.org/viewvc/jakarta/slide/trunk/src/share/org/apache/slide/content/NodeRevisionContent.java?view=diff&rev=548989&r1=548988&r2=548989
==============================================================================
--- jakarta/slide/trunk/src/share/org/apache/slide/content/NodeRevisionContent.java (original)
+++ jakarta/slide/trunk/src/share/org/apache/slide/content/NodeRevisionContent.java Wed Jun 20 01:28:03 2007
@@ -294,6 +294,7 @@
 
     public long bufferContent(InputStream is) throws IOException {
         File buffer = File.createTempFile("content_", null);
+        buffer.deleteOnExit();
         OutputStream os = new BufferedOutputStream(new FileOutputStream(buffer));
         try {
             long length = FileHelper.globalBufferCopy(is, os);



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org