[339730] EAR libraries Container not updated properly when running in batch mode
diff --git a/plugins/org.eclipse.jst.j2ee/common/org/eclipse/jst/j2ee/internal/common/classpath/J2EEComponentClasspathContainer.java b/plugins/org.eclipse.jst.j2ee/common/org/eclipse/jst/j2ee/internal/common/classpath/J2EEComponentClasspathContainer.java
index 7dcce22..803e874 100644
--- a/plugins/org.eclipse.jst.j2ee/common/org/eclipse/jst/j2ee/internal/common/classpath/J2EEComponentClasspathContainer.java
+++ b/plugins/org.eclipse.jst.j2ee/common/org/eclipse/jst/j2ee/internal/common/classpath/J2EEComponentClasspathContainer.java
@@ -523,13 +523,14 @@
}
public void refresh(boolean force){
- if(IDependencyGraph.INSTANCE.isStale()){
- //avoid deadlock https://bugs.eclipse.org/bugs/show_bug.cgi?id=334050
- //if the data is stale abort and attempt to update again in the near future
- J2EEComponentClasspathUpdater.getInstance().queueUpdate(javaProject.getProject());
- return;
+ if (!force) {
+ if(IDependencyGraph.INSTANCE.isStale()){
+ //avoid deadlock https://bugs.eclipse.org/bugs/show_bug.cgi?id=334050
+ //if the data is stale abort and attempt to update again in the near future
+ J2EEComponentClasspathUpdater.getInstance().queueUpdate(javaProject.getProject());
+ return;
+ }
}
-
if(force || requiresUpdate()){
install(containerPath, javaProject, null);
}