200300 [builds] We should spec TMP directory in Java invocations
diff --git a/releng.control/commonComputedVariables.shsource b/releng.control/commonComputedVariables.shsource
index 04cc756..5126aed 100644
--- a/releng.control/commonComputedVariables.shsource
+++ b/releng.control/commonComputedVariables.shsource
@@ -24,6 +24,8 @@
 # renamed from 'artifacts' to 'committers' to match downloads website. 
 export PROJECT_ARTIFACTS=${BUILD_HOME}/committers
 
+export RECOMMENDED_TMP_DIR=${BUILD_HOME}/tmp
+
 # in a fresh install, we need to make sure some basic directories exist
 mkdir -p ${ANT_WORKING}
 mkdir -p ${BASE_BUILDERS}
@@ -34,6 +36,7 @@
 mkdir -p ${PROJECT_TESTS}
 mkdir -p ${PROJECT_PROJECTS}
 mkdir -p ${PROJECT_ARTIFACTS}
+mkdir -p ${RECOMMENDED_TMP_DIR}
 
 export RELENG_BUILDER=webtools.releng/releng.wtpbuilder
 
diff --git a/releng.wtpbuilder/distribution/dali.site/build.xml b/releng.wtpbuilder/distribution/dali.site/build.xml
index 838242d..69cad4b 100644
--- a/releng.wtpbuilder/distribution/dali.site/build.xml
+++ b/releng.wtpbuilder/distribution/dali.site/build.xml
@@ -25,6 +25,7 @@
             <jvmarg value="-Dbuild.distribution=${build.distribution}" />
             <jvmarg value="-DbuildDirectory=${buildDirectory}" />
             <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" />
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />	
             <arg value="-application" />
             <arg value="org.eclipse.ant.core.antRunner" />
             <arg value="-buildfile" />
diff --git a/releng.wtpbuilder/distribution/dali.tests/build.xml b/releng.wtpbuilder/distribution/dali.tests/build.xml
index fbbc898..9866c38 100644
--- a/releng.wtpbuilder/distribution/dali.tests/build.xml
+++ b/releng.wtpbuilder/distribution/dali.tests/build.xml
@@ -172,6 +172,7 @@
             <jvmarg value="-DbuildBranch=${buildBranch}" />
             <jvmarg value="-DbuildType=${buildType}" />
             <jvmarg value="-DbuildId=${buildId}" />
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />  
 
             <arg value="-nosplash" />
             <arg value="-consolelog" />
diff --git a/releng.wtpbuilder/distribution/dali.tests/testScripts/junit-tests.xml b/releng.wtpbuilder/distribution/dali.tests/testScripts/junit-tests.xml
index 20c2e41..9117f78 100644
--- a/releng.wtpbuilder/distribution/dali.tests/testScripts/junit-tests.xml
+++ b/releng.wtpbuilder/distribution/dali.tests/testScripts/junit-tests.xml
@@ -206,7 +206,7 @@
             <jvmarg value="-Dosgi.clean=true" />
             <jvmarg value="-DPLUGIN_PATH=${plugin-path}" />
             <jvmarg line="${extraVMargs}" />
-
+          <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />
             <arg value="-nosplash" />
             <arg value="-consolelog" />
             <arg value="-debug" />
diff --git a/releng.wtpbuilder/distribution/dali.tests/testScripts/test.xml b/releng.wtpbuilder/distribution/dali.tests/testScripts/test.xml
index 4e3a523..5eab83e 100644
--- a/releng.wtpbuilder/distribution/dali.tests/testScripts/test.xml
+++ b/releng.wtpbuilder/distribution/dali.tests/testScripts/test.xml
@@ -216,6 +216,7 @@
                 value="${testRoot}/eclipse/plugins" />
             <arg
                 value="${testRoot}/test2.properties" />
+          <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />        	
         </java>
     </target>
     <target
diff --git a/releng.wtpbuilder/distribution/incubator.site/build.xml b/releng.wtpbuilder/distribution/incubator.site/build.xml
index a4fd72d..588e734 100644
--- a/releng.wtpbuilder/distribution/incubator.site/build.xml
+++ b/releng.wtpbuilder/distribution/incubator.site/build.xml
@@ -36,6 +36,7 @@
             <jvmarg value="-Dbuild.distribution=${build.distribution}" />
             <jvmarg value="-DbuildDirectory=${buildDirectory}" />
             <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" />
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />            	
             <arg value="-data" />
             <arg value="${basedir}/workspace" />
             <arg value="-application" />
diff --git a/releng.wtpbuilder/distribution/incubator.tests/build.xml b/releng.wtpbuilder/distribution/incubator.tests/build.xml
index f968563..df7adb2 100644
--- a/releng.wtpbuilder/distribution/incubator.tests/build.xml
+++ b/releng.wtpbuilder/distribution/incubator.tests/build.xml
@@ -192,7 +192,8 @@
             <jvmarg value="-DbuildBranch=${buildBranch}" />
             <jvmarg value="-DbuildType=${buildType}" />
             <jvmarg value="-DbuildId=${buildId}" />
-
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />
+            
             <arg value="-nosplash" />
             <arg value="-consolelog" />
 
diff --git a/releng.wtpbuilder/distribution/incubator.tests/testScripts/test.xml b/releng.wtpbuilder/distribution/incubator.tests/testScripts/test.xml
index 3e937d7..6a0d044 100644
--- a/releng.wtpbuilder/distribution/incubator.tests/testScripts/test.xml
+++ b/releng.wtpbuilder/distribution/incubator.tests/testScripts/test.xml
@@ -3,6 +3,8 @@
     default="all"
     basedir=".">
 
+    <property environment="env" />
+
     <echo
         level="info"
         message="starting Automated Eclipse Testing" />
@@ -169,6 +171,7 @@
             </classpath>
             <arg value="${testRoot}/eclipse/plugins" />
             <arg value="${testRoot}/test2.properties" />
+              <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />            	
         </java>
     </target>
 
diff --git a/releng.wtpbuilder/distribution/incubator.tests/testScripts/wtp-junit-tests.xml b/releng.wtpbuilder/distribution/incubator.tests/testScripts/wtp-junit-tests.xml
index b62ca58..a238ac4 100644
--- a/releng.wtpbuilder/distribution/incubator.tests/testScripts/wtp-junit-tests.xml
+++ b/releng.wtpbuilder/distribution/incubator.tests/testScripts/wtp-junit-tests.xml
@@ -207,7 +207,7 @@
             <jvmarg value="-Dosgi.clean=true" />
             <jvmarg value="-DPLUGIN_PATH=${plugin-path}" />
             <jvmarg line="${extraVMargs}" />
-
+          <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />
             <arg value="-nosplash" />
             <arg value="-consolelog" />
             <arg value="-debug" />
diff --git a/releng.wtpbuilder/distribution/patches.site/build.xml b/releng.wtpbuilder/distribution/patches.site/build.xml
index fa78ae2..a811ab5 100644
--- a/releng.wtpbuilder/distribution/patches.site/build.xml
+++ b/releng.wtpbuilder/distribution/patches.site/build.xml
@@ -42,7 +42,8 @@
             <jvmarg value="-Dbuild.distribution=${build.distribution}" />
             <jvmarg value="-DbuildDirectory=${buildDirectory}" />
             <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" />
-            <arg value="-data" />
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />
+        	  <arg value="-data" />
             <arg value="${basedir}/workspace" />
             <arg value="-application" />
             <arg value="org.eclipse.ant.core.antRunner" />
diff --git a/releng.wtpbuilder/distribution/patches.tests/build.xml b/releng.wtpbuilder/distribution/patches.tests/build.xml
index e1844ab..3e8e68a 100644
--- a/releng.wtpbuilder/distribution/patches.tests/build.xml
+++ b/releng.wtpbuilder/distribution/patches.tests/build.xml
@@ -200,7 +200,7 @@
             <jvmarg value="-DbuildBranch=${buildBranch}" />
             <jvmarg value="-DbuildType=${buildType}" />
             <jvmarg value="-DbuildId=${buildId}" />
-
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />
             <arg value="-nosplash" />
             <arg value="-consolelog" />
 
diff --git a/releng.wtpbuilder/distribution/patches.tests/testScripts/test.xml b/releng.wtpbuilder/distribution/patches.tests/testScripts/test.xml
index 4903d9d..dc10e2a 100644
--- a/releng.wtpbuilder/distribution/patches.tests/testScripts/test.xml
+++ b/releng.wtpbuilder/distribution/patches.tests/testScripts/test.xml
@@ -2,6 +2,7 @@
     name="Automated Eclipse Testing"
     default="all"
     basedir=".">
+      <property environment="env" />
 
     <echo
         level="info"
@@ -938,6 +939,7 @@
             </classpath>
             <arg value="${testRoot}/eclipse/plugins" />
             <arg value="${testRoot}/test2.properties" />
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />
         </java>
     </target>
 
diff --git a/releng.wtpbuilder/distribution/patches.tests/testScripts/wtp-junit-tests.xml b/releng.wtpbuilder/distribution/patches.tests/testScripts/wtp-junit-tests.xml
index 9cae8e8..1466b13 100644
--- a/releng.wtpbuilder/distribution/patches.tests/testScripts/wtp-junit-tests.xml
+++ b/releng.wtpbuilder/distribution/patches.tests/testScripts/wtp-junit-tests.xml
@@ -209,7 +209,7 @@
             <jvmarg value="-Dosgi.clean=true" />
             <jvmarg value="-DPLUGIN_PATH=${plugin-path}" />
             <jvmarg line="${extraVMargs}" />
-
+              <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />
             <arg value="-nosplash" />
             <arg value="-consolelog" />
             <arg value="-debug" />
diff --git a/releng.wtpbuilder/distribution/wtp.adopters/build.xml b/releng.wtpbuilder/distribution/wtp.adopters/build.xml
index 7de9937..598540c 100644
--- a/releng.wtpbuilder/distribution/wtp.adopters/build.xml
+++ b/releng.wtpbuilder/distribution/wtp.adopters/build.xml
@@ -265,6 +265,7 @@
             <jvmarg value="-Dosgi.arch=${env.BASEARCH}" />
             <jvmarg value="-Xmx512M" />
             <jvmarg line="${vmargs}" />
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />
             <arg value="-application" />
             <arg value="${application}" />
         </java>
diff --git a/releng.wtpbuilder/distribution/wtp.api/build.xml b/releng.wtpbuilder/distribution/wtp.api/build.xml
index e8d25f6..b4e872b 100644
--- a/releng.wtpbuilder/distribution/wtp.api/build.xml
+++ b/releng.wtpbuilder/distribution/wtp.api/build.xml
@@ -518,6 +518,7 @@
                 </fileset>
             </classpath>
             <jvmarg value="-Xmx512M" />
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />
             <arg line="${args}" />
         </java>
     </target>
diff --git a/releng.wtpbuilder/distribution/wtp.perf/build.xml b/releng.wtpbuilder/distribution/wtp.perf/build.xml
index 0e79b05..1d1083e 100644
--- a/releng.wtpbuilder/distribution/wtp.perf/build.xml
+++ b/releng.wtpbuilder/distribution/wtp.perf/build.xml
@@ -390,6 +390,7 @@
             <jvmarg value="-DbuildType.tests=${buildType.tests}" />
             <jvmarg value="-DbuildId.tests=${buildId.tests}" />
             <jvmarg value="-Dtimestamp.tests=${timestamp.tests}" />
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />
             <arg value="-propertyfile" />
             <arg
                 value="${build.home}/${env.RELENG_BUILDER}/distribution/wtp.perf/perf.properties" />
diff --git a/releng.wtpbuilder/distribution/wtp.perf/perf.xml b/releng.wtpbuilder/distribution/wtp.perf/perf.xml
index a940d59..5204d59 100644
--- a/releng.wtpbuilder/distribution/wtp.perf/perf.xml
+++ b/releng.wtpbuilder/distribution/wtp.perf/perf.xml
@@ -36,6 +36,7 @@
             </classpath>
             <arg value="${perfRoot}/eclipse/plugins" />
             <arg value="${perfRoot}/perf2.properties" />
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />    	
         </java>
     </target>
 
diff --git a/releng.wtpbuilder/distribution/wtp.site/build.xml b/releng.wtpbuilder/distribution/wtp.site/build.xml
index d5ad48f..f814b70 100644
--- a/releng.wtpbuilder/distribution/wtp.site/build.xml
+++ b/releng.wtpbuilder/distribution/wtp.site/build.xml
@@ -36,6 +36,7 @@
             <jvmarg value="-Dbuild.distribution=${build.distribution}" />
             <jvmarg value="-DbuildDirectory=${buildDirectory}" />
             <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" />
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />            	
           <jvmarg
                value="-Djava.protocol.handler.pkgs=com.ibm.etools.www.protocol" />
            <jvmarg
diff --git a/releng.wtpbuilder/distribution/wtp.tests/build.xml b/releng.wtpbuilder/distribution/wtp.tests/build.xml
index 6780e71..d79876c 100644
--- a/releng.wtpbuilder/distribution/wtp.tests/build.xml
+++ b/releng.wtpbuilder/distribution/wtp.tests/build.xml
@@ -234,6 +234,7 @@
                 value="-DbuildType=${buildType}" />
             <jvmarg
                 value="-DbuildId=${buildId}" />
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />                
             <arg
                 value="-nosplash" />
             <arg
diff --git a/releng.wtpbuilder/distribution/wtp.tests/testScripts/test.xml b/releng.wtpbuilder/distribution/wtp.tests/testScripts/test.xml
index c844be3..bc7002e 100644
--- a/releng.wtpbuilder/distribution/wtp.tests/testScripts/test.xml
+++ b/releng.wtpbuilder/distribution/wtp.tests/testScripts/test.xml
@@ -2,6 +2,8 @@
     name="Automated Eclipse Testing"
     default="all"
     basedir=".">
+    <property environment="env" />
+    
     <echo
         level="info"
         message="starting Automated Eclipse Testing" />
@@ -1048,6 +1050,7 @@
                 value="${testRoot}/eclipse/plugins" />
             <arg
                 value="${testRoot}/test2.properties" />
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />                
         </java>
     </target>
     <target
diff --git a/releng.wtpbuilder/distribution/wtp.tests/testScripts/wtp-junit-tests.xml b/releng.wtpbuilder/distribution/wtp.tests/testScripts/wtp-junit-tests.xml
index c4a5182..73331b4 100644
--- a/releng.wtpbuilder/distribution/wtp.tests/testScripts/wtp-junit-tests.xml
+++ b/releng.wtpbuilder/distribution/wtp.tests/testScripts/wtp-junit-tests.xml
@@ -210,7 +210,7 @@
             <jvmarg value="-Dosgi.clean=true" />
             <jvmarg value="-DPLUGIN_PATH=${plugin-path}" />
             <jvmarg line="${extraVMargs}" />
-
+          <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />
             <arg value="-nosplash" />
             <arg value="-consolelog" />
             <arg value="-debug" />
diff --git a/releng.wtpbuilder/scripts/build/buildutilities.xml b/releng.wtpbuilder/scripts/build/buildutilities.xml
index 8fa6307..af59073 100644
--- a/releng.wtpbuilder/scripts/build/buildutilities.xml
+++ b/releng.wtpbuilder/scripts/build/buildutilities.xml
@@ -299,6 +299,7 @@
             failonerror="true"
             maxmemory="256m"
             dir="${buildDirectory}">
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />        	
             <arg
                 line="${logIfDebug}" />
             <arg
@@ -323,6 +324,7 @@
             failonerror="true"
             maxmemory="256m"
             dir="${buildDirectory}">
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />        	
             <arg
                 line="${logIfDebug}" />
             <arg
diff --git a/releng.wtpbuilder/scripts/build/runbuild.xml b/releng.wtpbuilder/scripts/build/runbuild.xml
index 1cdd287..1d30d70 100644
--- a/releng.wtpbuilder/scripts/build/runbuild.xml
+++ b/releng.wtpbuilder/scripts/build/runbuild.xml
@@ -378,6 +378,7 @@
                 value="-Dbasebiulder.path=${basebuilder.path}" />
             <jvmarg
                 value="-DwtpBuildTools.file=${wtpBuildTools.file}" />
+            <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />                
             <arg
                 value="-application" />
             <arg