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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to