You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by mc...@apache.org on 2009/01/29 09:45:52 UTC
svn commit: r738800 -
/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
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() )