Hi Mat,

No idea how Winstone does this, but normal way to create temp files is:
File.createTempFile() - http://docs.oracle.com/javase/6/docs/api/java/io/File.html#createTempFile%28java.lang.String,%20java.lang.String%29

Might be that the JVM is not stopping cleanly, so these are not being cleaned up.



On 23 May 2012 11:51, Mat Broughton <mat.broughton@hpdsoftware.com> wrote:

Good Morning,


First up thanks for Winstone.  I am using it via the embedded.war method and all is good with the world.


The problem is that I have just noticed my user temp folder (Windows 7) is growing rapidly and a quick peek inside the temp folder, i.e.




Is full of the embedded.war files which aren’t deleted, i.e.






This is a bit of an issue as my war file is 10MB so every time I run my winstone.jar I get 10MB of stuff left behind.


Is there any way to force these embedded war files to be deleted when Winstone closes?  Is there an option to set a kind of File.deleteOnExit()?







Mat Broughton


Gemini Technical Team Leader

Tel : +44 (0)20 8780 6859

HPD Software Ltd.

Fax : +44 (0)20 8780 6801



Description: Image002



This email was scanned by Postini, the leading provider in Managed Email Security.

This email and any attachments are strictly confidential and are intended solely for the addressee. If you are not the intended recipient you must not disclose, forward, copy or take any action in reliance on this message or its attachments. If you have received this email in error please notify the sender as soon as possible and delete it from your computer systems. 
Any views or opinions presented are solely those of the author and do not necessarily reflect those of HPD Software Ltd.

HPD Software Ltd. Registered in England Number 1079138.  Registered Office:  Dial House, 2 Burston Road, Putney, London, SW15 6AR

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Winstone-devel mailing list