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 2011/06/29 01:02:57 UTC
svn commit: r1140888 -
/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
Author: mcculls
Date: Tue Jun 28 23:02:57 2011
New Revision: 1140888
URL: http://svn.apache.org/viewvc?rev=1140888&view=rev
Log:
FELIX-3011: make sure dump locations are writable
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=1140888&r1=1140887&r2=1140888&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 Tue Jun 28 23:02:57 2011
@@ -450,7 +450,9 @@ public class BundlePlugin extends Abstra
getLog().debug( "BND Instructions:" + NL + dumpInstructions( builder.getProperties(), buf ) );
if ( dumpInstructions != null )
{
- FileUtils.fileWrite( dumpInstructions, buf.toString() );
+ getLog().info( "Writing BND instructions to " + dumpInstructions );
+ dumpInstructions.getParentFile().mkdirs();
+ FileUtils.fileWrite( dumpInstructions, "# BND instructions" + NL + buf );
}
}
@@ -460,7 +462,9 @@ public class BundlePlugin extends Abstra
getLog().debug( "BND Classpath:" + NL + dumpClasspath( builder.getClasspath(), buf ) );
if ( dumpClasspath != null )
{
- FileUtils.fileWrite( dumpClasspath, buf.toString() );
+ getLog().info( "Writing BND classpath to " + dumpClasspath );
+ dumpClasspath.getParentFile().mkdirs();
+ FileUtils.fileWrite( dumpClasspath, "# BND classpath" + NL + buf );
}
}
}