commit | 9392d99dd61affd497f6aa56afda8dfb5b0706ca | [log] [tgz] |
---|---|---|
author | Stuart McCulloch <mcculls@apache.org> | Mon Oct 17 22:35:44 2011 +0000 |
committer | Stuart McCulloch <mcculls@apache.org> | Mon Oct 17 22:35:44 2011 +0000 |
tree | b04bcd581c72e2232effcb0f884a6aa04c430293 | |
parent | 6fd8d89235d48141bfb3f1adea764bbe1f576d4f [diff] |
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 );