You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by pi...@apache.org on 2010/12/30 06:33:12 UTC

svn commit: r1053796 - /karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java

Author: pieber
Date: Thu Dec 30 05:33:11 2010
New Revision: 1053796

URL: http://svn.apache.org/viewvc?rev=1053796&view=rev
Log:
Minor output enhancement for zip manifest error possible during installation of features

Signed-off-by: Andreas Pieber <an...@gmail.com>

Modified:
    karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java

Modified: karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java
URL: http://svn.apache.org/viewvc/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java?rev=1053796&r1=1053795&r2=1053796&view=diff
==============================================================================
--- karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java (original)
+++ karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java Thu Dec 30 05:33:11 2010
@@ -571,9 +571,9 @@ public class FeaturesServiceImpl impleme
     }
 
     protected Bundle installBundleIfNeeded(InstallationState state, BundleInfo bundleInfo) throws IOException, BundleException {
-        LOGGER.debug("Checking " + bundleInfo.getLocation());
         InputStream is;
         String bundleLocation = bundleInfo.getLocation();
+        LOGGER.debug("Checking " + bundleLocation);
         try {
             is = new BufferedInputStream(new URL(bundleLocation).openStream());
         } catch (RuntimeException e) {
@@ -585,7 +585,7 @@ public class FeaturesServiceImpl impleme
             JarInputStream jar = new JarInputStream(is);
             Manifest m = jar.getManifest();
             if(m == null) {
-                throw new BundleException("Manifest not present in the first entry of the zip");
+                throw new BundleException("Manifest not present in the first entry of the zip " + bundleLocation);
             }
             String sn = m.getMainAttributes().getValue(Constants.BUNDLE_SYMBOLICNAME);
             String vStr = m.getMainAttributes().getValue(Constants.BUNDLE_VERSION);