JBoss Tools SVN: r3987 - tags.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2007-10-02 19:56:43 -0400 (Tue, 02 Oct 2007)
New Revision: 3987
Added:
tags/core-2.0.0.beta4/
Log:
tagging core
17 years, 3 months
JBoss Tools SVN: r3986 - tags/jbossas-1.0.0.beta4.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2007-10-02 19:55:53 -0400 (Tue, 02 Oct 2007)
New Revision: 3986
Added:
tags/jbossas-1.0.0.beta4/as/
Log:
retagging as
Copied: tags/jbossas-1.0.0.beta4/as (from rev 3985, trunk/as)
17 years, 3 months
JBoss Tools SVN: r3984 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-10-02 17:54:01 -0400 (Tue, 02 Oct 2007)
New Revision: 3984
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/SingleDeployableFactory.java
Log:
periodic updater also re-adds missing modules that *are* deployed but were removed incorrectly.
RHDS-204
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/SingleDeployableFactory.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/SingleDeployableFactory.java 2007-10-02 21:23:55 UTC (rev 3983)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/SingleDeployableFactory.java 2007-10-02 21:54:01 UTC (rev 3984)
@@ -1,5 +1,7 @@
package org.jboss.ide.eclipse.as.core.modules;
+import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
@@ -108,21 +110,33 @@
protected void cleanUnusedModules() {
IModule[] mods = getModules();
IServer[] servers = ServerCore.getServers();
- for( int i = 0; i < mods.length; i++ ) {
- boolean used = false;
- for( int j = 0; j < servers.length && !used; j++ ) {
- IModule[] modsInner = servers[i].getModules();
- for( int k = 0; k < modsInner.length && !used; k++ ) {
- if( mods[i].equals(modsInner[k]))
- used = true;
+ ArrayList<IModule> usedMods = new ArrayList<IModule>();
+ for( int i = 0; i < servers.length; i++ ) {
+ IModule[] modsInner = servers[i].getModules();
+ for( int j = 0; j < modsInner.length; j++ ) {
+ if( modsInner[j].getModuleType().getId().equals(MODULE_TYPE)) {
+ if( !usedMods.contains(modsInner[j]))
+ usedMods.add(modsInner[j]);
}
}
- if( !used ) {
+ }
+
+ for( int i = 0; i < mods.length; i++ ) {
+ if( !usedMods.contains(mods[i])) {
SingleDeployableModuleDelegate delegate = (SingleDeployableModuleDelegate)
mods[i].loadAdapter(SingleDeployableModuleDelegate.class, new NullProgressMonitor());
unmakeDeployable(delegate.getWorkspaceRelativePath());
+ } else {
+ usedMods.remove(mods[i]);
}
}
+
+ IModule tmp;
+ for( Iterator<IModule> i = usedMods.iterator(); i.hasNext(); ) {
+ tmp = i.next();
+ makeDeployable(new Path(tmp.getName()));
+ }
+
}
public IModule getModule(IPath path) {
17 years, 3 months
JBoss Tools SVN: r3983 - tags/seam-2.0.0.beta4.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2007-10-02 17:23:55 -0400 (Tue, 02 Oct 2007)
New Revision: 3983
Added:
tags/seam-2.0.0.beta4/seam/
Log:
Copied: tags/seam-2.0.0.beta4/seam (from rev 3982, trunk/seam)
17 years, 3 months
JBoss Tools SVN: r3981 - tags/richfaces-2.0.0.beta4.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2007-10-02 17:23:21 -0400 (Tue, 02 Oct 2007)
New Revision: 3981
Added:
tags/richfaces-2.0.0.beta4/vpe/
Log:
Copied: tags/richfaces-2.0.0.beta4/vpe (from rev 3980, trunk/vpe)
17 years, 3 months
JBoss Tools SVN: r3980 - tags/richfaces-2.0.0.beta4.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2007-10-02 17:23:16 -0400 (Tue, 02 Oct 2007)
New Revision: 3980
Added:
tags/richfaces-2.0.0.beta4/jst/
Log:
Copied: tags/richfaces-2.0.0.beta4/jst (from rev 3979, trunk/jst)
17 years, 3 months
JBoss Tools SVN: r3979 - tags/richfaces-2.0.0.beta4.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2007-10-02 17:23:11 -0400 (Tue, 02 Oct 2007)
New Revision: 3979
Added:
tags/richfaces-2.0.0.beta4/jsf/
Log:
Copied: tags/richfaces-2.0.0.beta4/jsf (from rev 3978, trunk/jsf)
17 years, 3 months
JBoss Tools SVN: r3978 - tags/richfaces-2.0.0.beta4.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2007-10-02 17:23:05 -0400 (Tue, 02 Oct 2007)
New Revision: 3978
Added:
tags/richfaces-2.0.0.beta4/common/
Log:
Copied: tags/richfaces-2.0.0.beta4/common (from rev 3977, trunk/common)
17 years, 3 months