directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcon...@apache.org
Subject svn commit: r501179 - /directory/sandbox/jconlon/osgi-services/logging-service-integration-test/src/test/java/org/apache/directory/osgi/services/logging/test/LogServiceBundleTest.java
Date Mon, 29 Jan 2007 20:50:01 GMT
Author: jconlon
Date: Mon Jan 29 12:50:00 2007
New Revision: 501179

URL: http://svn.apache.org/viewvc?view=rev&rev=501179
Log:
Expanded test output to see more bundle information.

Modified:
    directory/sandbox/jconlon/osgi-services/logging-service-integration-test/src/test/java/org/apache/directory/osgi/services/logging/test/LogServiceBundleTest.java

Modified: directory/sandbox/jconlon/osgi-services/logging-service-integration-test/src/test/java/org/apache/directory/osgi/services/logging/test/LogServiceBundleTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/jconlon/osgi-services/logging-service-integration-test/src/test/java/org/apache/directory/osgi/services/logging/test/LogServiceBundleTest.java?view=diff&rev=501179&r1=501178&r2=501179
==============================================================================
--- directory/sandbox/jconlon/osgi-services/logging-service-integration-test/src/test/java/org/apache/directory/osgi/services/logging/test/LogServiceBundleTest.java
(original)
+++ directory/sandbox/jconlon/osgi-services/logging-service-integration-test/src/test/java/org/apache/directory/osgi/services/logging/test/LogServiceBundleTest.java
Mon Jan 29 12:50:00 2007
@@ -21,6 +21,7 @@
 
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleContext;
+import org.osgi.framework.Constants;
 import org.osgi.framework.ServiceReference;
 import org.osgi.service.log.LogService;
 import org.slf4j.Logger;
@@ -128,7 +129,14 @@
             for ( int i = 0; i < bundles.length; i++ )
             {
                 Bundle bundle = bundles[i];
-                logService.log( LogService.LOG_DEBUG, bundle.getSymbolicName() );
+                if(bundle.getHeaders().get( Constants.BUNDLE_ACTIVATOR)!=null){
+                    logService.log( LogService.LOG_DEBUG, 
+                        "Symbolic Name:"+bundle.getSymbolicName()+", Activator:"+
+                        bundle.getHeaders().get( Constants.BUNDLE_ACTIVATOR));
+                }else{
+                    logService.log( LogService.LOG_DEBUG, 
+                        "Symbolic Name:"+bundle.getSymbolicName());
+                }
             }
            
         }



Mime
View raw message