felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mccu...@apache.org
Subject svn commit: r1140888 - /felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
Date Tue, 28 Jun 2011 23:02:57 GMT
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 );
             }
         }
     }



Mime
View raw message