geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r453716 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoSourcePathComputerDelegate.java
Date Fri, 06 Oct 2006 18:05:55 GMT
Author: sppatel
Date: Fri Oct  6 11:05:54 2006
New Revision: 453716

URL: http://svn.apache.org/viewvc?view=rev&rev=453716
Log:
additional trace statements for source containers

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

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoSourcePathComputerDelegate.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoSourcePathComputerDelegate.java?view=diff&rev=453716&r1=453715&r2=453716
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoSourcePathComputerDelegate.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoSourcePathComputerDelegate.java
Fri Oct  6 11:05:54 2006
@@ -76,14 +76,23 @@
 
 		IRuntimeClasspathEntry[] resolved = JavaRuntime.resolveSourceLookupPath(entries, configuration);
 		ISourceContainer[] defaultContainers = JavaRuntime.getSourceContainers(resolved);
+		
 		HashSet allContainers = new HashSet(Arrays.asList(defaultContainers));
 		Iterator i = getAdditionalSrcPathComputers().iterator();
 		ILaunchManager mgr = DebugPlugin.getDefault().getLaunchManager();
+		Trace.trace(Trace.INFO, "Total # of unique source containers: " + allContainers.size());
 		while(i.hasNext()) {
 			ISourcePathComputer computer = mgr.getSourcePathComputer((String) i.next());
-			Trace.trace(Trace.INFO, "Invoking Source Path Computer" +  computer.getId());
+			Trace.trace(Trace.INFO, "Invoking Source Path Computer " +  computer.getId());
 			ISourceContainer[] jsc = computer.computeSourceContainers(configuration, monitor);
+			if(jsc != null) {
+				Trace.trace(Trace.INFO, "Additional Source Containers returned ...");
+				for(int j = 0; j < jsc.length; j++) {
+					Trace.trace(Trace.INFO, jsc[j].getName());
+				}
+			}
 			allContainers.addAll(Arrays.asList(jsc));
+			Trace.trace(Trace.INFO, "Number # of unique source containers: " + allContainers.size());
 		}
 		
 		// TODO support resolving from geronimo source distribution



Mime
View raw message