if i remember, winstone temp file are managed without File.createTempFile because temp folder can be customized with command switch.

May this version did not do a correct deleteOnExit or not adding a ShutdownHook on his temp ressources...


Regards

Jerome

On Thu, May 24, 2012 at 12:45 PM, Alex Anderson <alexandergeorge@users.sourceforge.net> wrote:
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.

Cheers,

Alex


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.

 

\Users\userName\AppData\Local\Temp

 

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

 

embedded549398783298787340.war

embedded1450160072362425500.war

e.t.c.

 

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()?

 

Cheers

 

Mat

 

 

Mat Broughton

                  

Gemini Technical Team Leader

Tel : +44 (0)20 8780 6859

HPD Software Ltd.

Fax : +44 (0)20 8780 6801

mat.broughton@hpdsoftware.com

http://www.hpdsoftware.com

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
Winstone-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/winstone-devel



------------------------------------------------------------------------------
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
Winstone-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/winstone-devel