You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2010/12/31 16:15:03 UTC

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

Author: jbonofre
Date: Fri Dec 31 15:15:03 2010
New Revision: 1054125

URL: http://svn.apache.org/viewvc?rev=1054125&view=rev
Log:
[KARAF-346] Features installation is now more verbose to display exactly what karaf performs.

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=1054125&r1=1054124&r2=1054125&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 Fri Dec 31 15:15:03 2010
@@ -355,6 +355,8 @@ public class FeaturesServiceImpl impleme
     }
 
     protected void doInstallFeature(InstallationState state, Feature feature) throws Exception {
+        LOGGER.info("Installing feature " + feature.getName() + " " + feature.getVersion());
+        System.out.println("Installing feature " + feature.getName() + " " + feature.getVersion());
         for (Feature dependency : feature.getDependencies()) {
             VersionRange range = FeatureImpl.DEFAULT_VERSION.equals(dependency.getVersion())
                         ? VersionRange.ANY_VERSION : new VersionRange(dependency.getVersion(), true, true);
@@ -595,7 +597,8 @@ public class FeaturesServiceImpl impleme
                     vStr = (String) b.getHeaders().get(Constants.BUNDLE_VERSION);
                     Version bv = vStr == null ? Version.emptyVersion : Version.parseVersion(vStr);
                     if (v.equals(bv)) {
-                        LOGGER.debug("  found installed bundle: " + b);
+                        LOGGER.info("Found installed bundle: " + b);
+                        System.out.println("Found installed bundle: " + b);
                         state.bundles.add(b);
                         return b;
                     }
@@ -607,7 +610,8 @@ public class FeaturesServiceImpl impleme
                 is.close();
                 is = new BufferedInputStream(new URL(bundleLocation).openStream());
             }
-            LOGGER.debug("Installing bundle " + bundleLocation);
+            System.out.println("Installing bundle " + bundleLocation);
+            LOGGER.info("Installing bundle " + bundleLocation);
             Bundle b = getBundleContext().installBundle(bundleLocation, is);
             
             // Define the startLevel for the bundle when defined
@@ -625,7 +629,8 @@ public class FeaturesServiceImpl impleme
     }
     
     public void installConfigurationFile(String fileLocation, String finalname) throws IOException {
-    	LOGGER.debug("Checking " + fileLocation);
+    	LOGGER.info("Checking configuration file " + fileLocation);
+        System.out.println("Checking configuration file " + fileLocation);
     	
     	String basePath = System.getProperty("karaf.base");