Author: rob.stryker(a)jboss.com
Date: 2011-01-12 13:48:08 -0500 (Wed, 12 Jan 2011)
New Revision: 28147
Modified:
branches/jbosstools-3.2.0.CR1/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java
Log:
removing a sysout and addign a progress monitor cancel check in deltacloud starting the
rse job
Modified:
branches/jbosstools-3.2.0.CR1/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java
===================================================================
---
branches/jbosstools-3.2.0.CR1/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java 2011-01-12
18:31:13 UTC (rev 28146)
+++
branches/jbosstools-3.2.0.CR1/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java 2011-01-12
18:48:08 UTC (rev 28147)
@@ -108,13 +108,12 @@
monitor.setTaskName("Connecting to remote server");
IStatus status = null;
int count = 0;
- while( status == null && count < timeout) {
+ while( status == null && count < timeout && !monitor.isCanceled())
{
try {
status = connect(service, monitor);
monitor.done();
return status;
} catch(Exception e) {
- System.out.println("Exception " + e.getMessage() + " at timeout "
+ count);
count += 1000;
monitor.worked(1000);
try {
Show replies by date