Always unpack generated bnd files (lastModified==0) when unpackBundle is true

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1185411 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java
index 3752d2b..2b147f3 100644
--- a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java
+++ b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java
@@ -121,7 +121,7 @@
             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 );