felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mccu...@apache.org
Subject svn commit: r1185411 - /felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java
Date Mon, 17 Oct 2011 22:35:44 GMT
Author: mcculls
Date: Mon Oct 17 22:35:44 2011
New Revision: 1185411

URL: http://svn.apache.org/viewvc?rev=1185411&view=rev
Log:
Always unpack generated bnd files (lastModified==0) when unpackBundle is true

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?rev=1185411&r1=1185410&r2=1185411&view=diff
==============================================================================
--- 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
Mon Oct 17 22:35:44 2011
@@ -121,7 +121,7 @@ public class ManifestPlugin extends Bund
             for ( Entry<String, Resource> entry : jar.getResources().entrySet() )
             {
                 File entryFile = new File( outputFile, entry.getKey() );
-                if ( !entryFile.exists() )
+                if ( !entryFile.exists() || entry.getValue().lastModified() == 0 )
                 {
                     entryFile.getParentFile().mkdirs();
                     OutputStream os = new FileOutputStream( entryFile );



Mime
View raw message