geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r416453 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.jmxagent/src/org/apache/geronimo/st/jmxagent/ConfigurationStoreResolver.java
Date Thu, 22 Jun 2006 19:44:14 GMT
Author: sppatel
Date: Thu Jun 22 12:44:14 2006
New Revision: 416453

URL: http://svn.apache.org/viewvc?rev=416453&view=rev
Log:
resolve referenced projects and jars

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.jmxagent/src/org/apache/geronimo/st/jmxagent/ConfigurationStoreResolver.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.jmxagent/src/org/apache/geronimo/st/jmxagent/ConfigurationStoreResolver.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.jmxagent/src/org/apache/geronimo/st/jmxagent/ConfigurationStoreResolver.java?rev=416453&r1=416452&r2=416453&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.jmxagent/src/org/apache/geronimo/st/jmxagent/ConfigurationStoreResolver.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.jmxagent/src/org/apache/geronimo/st/jmxagent/ConfigurationStoreResolver.java
Thu Jun 22 12:44:14 2006
@@ -25,9 +25,12 @@
 import org.eclipse.core.runtime.IPath;
 import org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit;
 import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
+import org.eclipse.wst.common.componentcore.ComponentCore;
 import org.eclipse.wst.common.componentcore.internal.StructureEdit;
 import org.eclipse.wst.common.componentcore.internal.WorkbenchComponent;
 import org.eclipse.wst.common.componentcore.internal.impl.WorkbenchComponentImpl;
+import org.eclipse.wst.common.componentcore.internal.resources.VirtualArchiveComponent;
+import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
 import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
 
 public class ConfigurationStoreResolver implements ConfigurationStoreResolverMBean {
@@ -78,6 +81,17 @@
 		} else {
 			//return output containers
 			addOutputContainers(project, result);
+			
+			//add output of referenced projects and jars
+			IVirtualReference refs[] = ComponentCore.createComponent(project).getReferences();
+			for(int i = 0; i < refs.length; i++) {
+				IVirtualComponent vc = refs[i].getReferencedComponent();
+				if(vc instanceof VirtualArchiveComponent) {
+					result.add(((VirtualArchiveComponent) vc).getUnderlyingDiskFile());
+				} else {
+					addOutputContainers(vc.getProject(), result);
+				}
+			}
 		}
 		
 		Trace.trace(Trace.INFO, "ConfigStore Resolve Result: " + result);



Mime
View raw message