Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368389

Summary: Set java.io.tmpdir property when creating a Tomcat server
Product: [WebTools] WTP ServerTools Reporter: Tim Astle <timothy.astle>
Component: wst.serverAssignee: wst.server <wst.server-inbox>
Status: NEW --- QA Contact: Elson Yuen <eyuen7>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Tim Astle CLA 2012-01-11 13:54:18 EST
Build Identifier: Version: Indigo Service Release 1 Build id: 20110916-0149

When creating a Tomcat server, the -Djava.io.tmpdir is not set.  This is very odd considering that a workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\temp directory is created.  I would expect that by default the following would be set when a Tomcat server is created:

-Djava.io.tmpdir=PATH_TO\.metadata\.plugins\org.eclipse.wst.server.core\tmpN\temp

Currently since this is not set, the output can vary depending on the system and can lead to confusion.

Reproducible: Always

Steps to Reproduce:
1. Create a Tomcat server
2. Double click the Tomcat server to bring up the Overview window.
3. Select the Open Launch Configuration link.
4. Select the Arguments tab
5. Note that the VM arguments text area does not have a -Djava.io.tmpdir set.