You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by fp...@apache.org on 2020/10/21 15:10:22 UTC

[karaf-winegrower] branch master updated: Update OSGiCDIManifestContributor.java

This is an automated email from the ASF dual-hosted git repository.

fpapon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf-winegrower.git


The following commit(s) were added to refs/heads/master by this push:
     new b1cbcd4  Update OSGiCDIManifestContributor.java
     new 7d87bc2  Merge pull request #20 from rmannibucau/patch-2
b1cbcd4 is described below

commit b1cbcd40c227c228eeba72df2a23ebbe545f542c
Author: Romain Manni-Bucau <rm...@gmail.com>
AuthorDate: Wed Oct 21 16:54:26 2020 +0200

    Update OSGiCDIManifestContributor.java
    
    typo to check if a jar contains a beans.xml
---
 .../apache/winegrower/scanner/manifest/OSGiCDIManifestContributor.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winegrower-core/src/main/java/org/apache/winegrower/scanner/manifest/OSGiCDIManifestContributor.java b/winegrower-core/src/main/java/org/apache/winegrower/scanner/manifest/OSGiCDIManifestContributor.java
index b1dd0cb..7c0f582 100644
--- a/winegrower-core/src/main/java/org/apache/winegrower/scanner/manifest/OSGiCDIManifestContributor.java
+++ b/winegrower-core/src/main/java/org/apache/winegrower/scanner/manifest/OSGiCDIManifestContributor.java
@@ -55,7 +55,7 @@ public class OSGiCDIManifestContributor implements ManifestContributor {
         final WinegrowerAnnotationFinder waf = WinegrowerAnnotationFinder.class.cast(finder);
         if (JarArchive.class.isInstance(archive)) {
             try (final JarFile jar = new JarFile(org.apache.xbean.finder.util.Files.toFile(JarArchive.class.cast(archive).getUrl()))) {
-                if (jar.getEntry("META-INF/beans/xml") == null) {
+                if (jar.getEntry("META-INF/beans.xml") == null) {
                     return;
                 }
                 appendOsgiCDIExtender(mf, waf);