commit | e0245c666253b7529b991172c0e842d721959a62 | [log] [tgz] |
---|---|---|
author | Guillaume Nodet <gnodet@apache.org> | Sat May 01 06:50:59 2010 +0000 |
committer | Guillaume Nodet <gnodet@apache.org> | Sat May 01 06:50:59 2010 +0000 |
tree | 5e623ec46f3f9739488c52259c00139bb0b4c2da | |
parent | 7042599c009c3e82004483d9817eb8c0d3387b5e [diff] |
FELIX-2313: fileinstall does not recognize jars if it does not have Bundle-SymbolicName and Bundle-Version git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@939930 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/BundleTransformer.java b/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/BundleTransformer.java index 00241de..563d895 100644 --- a/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/BundleTransformer.java +++ b/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/BundleTransformer.java
@@ -49,8 +49,7 @@ } jar = new JarFile(artifact); Manifest m = jar.getManifest(); - if (m.getMainAttributes().getValue(new Attributes.Name("Bundle-SymbolicName")) != null - && m.getMainAttributes().getValue(new Attributes.Name("Bundle-Version")) != null) + if (m.getMainAttributes().getValue(new Attributes.Name("Bundle-SymbolicName")) != null) { return true; }