You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by sp...@apache.org on 2006/10/05 19:07:07 UTC

svn commit: r453288 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/commands/SynchronizedDeploymentOp.java

Author: sppatel
Date: Thu Oct  5 10:07:06 2006
New Revision: 453288

URL: http://svn.apache.org/viewvc?view=rev&rev=453288
Log:
add status for timeout fixes NPE on status check

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/commands/SynchronizedDeploymentOp.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/commands/SynchronizedDeploymentOp.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/commands/SynchronizedDeploymentOp.java?view=diff&rev=453288&r1=453287&r2=453288
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/commands/SynchronizedDeploymentOp.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/commands/SynchronizedDeploymentOp.java Thu Oct  5 10:07:06 2006
@@ -43,7 +43,7 @@
 public class SynchronizedDeploymentOp implements ProgressListener,
 		IDeploymentCommand {
 
-	private static final long TIMEOUT = 10000;
+	private static final long TIMEOUT = 600000;
 
 	private IDeploymentCommand command;
 
@@ -95,6 +95,8 @@
 			po.removeProgressListener(this);
 			if (timedOut) {
 				Trace.trace(Trace.SEVERE, "Command Timed Out!");
+				status = new MultiStatus(Activator.PLUGIN_ID, 0, "", null);
+				status.add(new Status(IStatus.ERROR, Activator.PLUGIN_ID, 0, command.getCommandType() + " timed out.", null));
 			}
 		}