felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject svn commit: r555987 - /felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java
Date Fri, 13 Jul 2007 13:31:26 GMT
Author: pauls
Date: Fri Jul 13 06:31:25 2007
New Revision: 555987

URL: http://svn.apache.org/viewvc?view=rev&rev=555987
Log:
Fix a NPE in manifest goal (FELIX-326)

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

Modified: felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java?view=diff&rev=555987&r1=555986&r2=555987
==============================================================================
--- felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java
(original)
+++ felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java
Fri Jul 13 06:31:25 2007
@@ -19,6 +19,7 @@
 package org.apache.felix.bundleplugin;
 
 import java.io.File;
+import java.io.FileNotFoundException;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.util.HashMap;
@@ -109,12 +110,17 @@
 
         analyzer.setProperties( props );
 
-        if ( project.getArtifact().getFile() == null )
+        File file = project.getArtifact().getFile();
+        if ( file == null )
         {
             analyzer.setJar( getOutputDirectory() );
         }
         else
         {
+            if ( !file.exists() )
+            {
+                file.mkdirs();
+            }
             analyzer.setJar( project.getArtifact().getFile() );
         }
 



Mime
View raw message