geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1243411 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.core/src/main/java/org/apache/geronimo/st/v30/core/DeploymentUtils.java
Date Mon, 13 Feb 2012 04:06:20 GMT
Author: gawor
Date: Mon Feb 13 04:06:20 2012
New Revision: 1243411

URL: http://svn.apache.org/viewvc?rev=1243411&view=rev
Log:
GERONIMODEVTOOLS-783: Ensure same tmp directory is used

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.core/src/main/java/org/apache/geronimo/st/v30/core/DeploymentUtils.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.core/src/main/java/org/apache/geronimo/st/v30/core/DeploymentUtils.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.core/src/main/java/org/apache/geronimo/st/v30/core/DeploymentUtils.java?rev=1243411&r1=1243410&r2=1243411&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.core/src/main/java/org/apache/geronimo/st/v30/core/DeploymentUtils.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.core/src/main/java/org/apache/geronimo/st/v30/core/DeploymentUtils.java
Mon Feb 13 04:06:20 2012
@@ -483,15 +483,17 @@ public class DeploymentUtils {
     public static File createChangeSetFile(IModuleResource[] resources) {
         Trace.tracePoint("Entry", Activator.traceCore, "DeploymentUtils.createChangeSetFile",
resources);
         
+        File tmpDir = STATE_LOC.toFile();
+        
         File file = null;
         try {
-            file = File.createTempFile("changeset", ".jar");
+            file = File.createTempFile("changeset", ".jar", tmpDir);
         } catch (IOException e) {
             Trace.tracePoint("Exit ", Activator.traceCore, "DeploymentUtils.createChangeSetFile",
e);
             return null;
         }
         
-        PublishHelper publishHelper = new PublishHelper(null);
+        PublishHelper publishHelper = new PublishHelper(tmpDir);
         IStatus[] statusArray = publishHelper.publishZip(resources, new Path(file.getAbsolutePath()),
null);
         if (statusArray != null) {
             for (IStatus status : statusArray) {



Mime
View raw message