Author: rob.stryker(a)jboss.com
Date: 2011-11-25 00:26:11 -0500 (Fri, 25 Nov 2011)
New Revision: 36647
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/LocalJBoss7BehaviorDelegate.java
Log:
JBIDE-9227
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/LocalJBoss7BehaviorDelegate.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/LocalJBoss7BehaviorDelegate.java 2011-11-25
00:00:17 UTC (rev 36646)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/LocalJBoss7BehaviorDelegate.java 2011-11-25
05:26:11 UTC (rev 36647)
@@ -28,20 +28,23 @@
public class LocalJBoss7BehaviorDelegate extends LocalJBossBehaviorDelegate {
private IJBoss7ManagerService service;
-
+ private boolean previousStopFailed = false;
+
public IStatus canChangeState(String launchMode) {
return Status.OK_STATUS;
}
@Override
public void stop(boolean force) {
- if (force) {
+ if (force || previousStopFailed) {
forceStop();
+ previousStopFailed = false;
} else {
setServerStopping();
IStatus result = gracefullStop();
if (!result.isOK()) {
- forceStop();
+ previousStopFailed = true;
+ setServerStarted();
}
}
}
Show replies by date