felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mccu...@apache.org
Subject svn commit: r738800 - /felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
Date Thu, 29 Jan 2009 08:45:52 GMT
Author: mcculls
Date: Thu Jan 29 08:45:51 2009
New Revision: 738800

URL: http://svn.apache.org/viewvc?rev=738800&view=rev
Log:
Dump classpath passed to BND when debug logging is enabled

Modified:
    felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java

Modified: felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java?rev=738800&r1=738799&r2=738800&view=diff
==============================================================================
--- felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
(original)
+++ felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
Thu Jan 29 08:45:51 2009
@@ -391,6 +391,7 @@
         new DependencyEmbedder( embeddableArtifacts ).processHeaders( builder );
 
         dumpInstructions( "BND Instructions:", builder.getProperties(), getLog() );
+        dumpClasspath( "BND Classpath:", builder.getClasspath(), getLog() );
 
         builder.build();
         Jar jar = builder.getJar();
@@ -425,6 +426,22 @@
     }
 
 
+    protected static void dumpClasspath( String title, List classpath, Log log )
+    {
+        if ( log.isDebugEnabled() )
+        {
+            log.debug( title );
+            log.debug( "------------------------------------------------------------------------"
);
+            for ( Iterator i = classpath.iterator(); i.hasNext(); )
+            {
+                File path = ((Jar)i.next()).getSource();
+                log.debug( null == path ? "null" : path.toString() );
+            }
+            log.debug( "------------------------------------------------------------------------"
);
+        }
+    }
+
+
     protected static void dumpManifest( String title, Manifest manifest, Log log )
     {
         if ( log.isDebugEnabled() )



Mime
View raw message