Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreyuen2014-01-09 19:57:00 +0000
committereyuen2014-01-09 19:57:00 +0000
commit4929106e776a0cdcb743a7cae2d9c6b841bbc620 (patch)
tree4541addc75eb0939b15209b385ce83d8790cf8ce
parent19c41d8a705c8780fdbb054514e5ed91da1414ae (diff)
downloadwebtools.servertools-4929106e776a0cdcb743a7cae2d9c6b841bbc620.tar.gz
webtools.servertools-4929106e776a0cdcb743a7cae2d9c6b841bbc620.tar.xz
webtools.servertools-4929106e776a0cdcb743a7cae2d9c6b841bbc620.zip
[394844] Server with external modules in Republish state after eclipsev20140109_1457
starts up
-rw-r--r--plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/Server.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/Server.java b/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/Server.java
index 722c8d581..2989db63a 100644
--- a/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/Server.java
+++ b/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/Server.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2013 IBM Corporation and others.
+ * Copyright (c) 2003, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -1250,20 +1250,21 @@ public class Server extends Base implements IServer {
if (getServerPublishState() != PUBLISH_STATE_UNKNOWN)
return false;
- final boolean[] publish = new boolean[1];
- publish[0] = true;
+ final boolean[] isPublishUnknown = new boolean[1];
+ isPublishUnknown[0] = true;
visit(new IModuleVisitor() {
public boolean visit(IModule[] module) {
- if (getModulePublishState(module) != PUBLISH_STATE_UNKNOWN) {
- publish[0] = false;
+ int curState = getModulePublishState(module);
+ if (curState != PUBLISH_STATE_UNKNOWN && curState != PUBLISH_STATE_NONE) {
+ isPublishUnknown[0] = false;
return false;
}
return true;
}
}, null);
- return publish[0];
+ return isPublishUnknown[0];
}
/**

Back to the top