incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r575770 - /incubator/sling/trunk/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/BundleInstallMojo.java
Date Fri, 14 Sep 2007 18:32:28 GMT
Author: fmeschbe
Date: Fri Sep 14 11:30:50 2007
New Revision: 575770

URL: http://svn.apache.org/viewvc?rev=575770&view=rev
Log:
SLING-10 Implement support to install bundles into a locally running Sling instance
  - skip does not really work
  - only print the stack trace of the ConnectException at debug, else just print a line of
info

Modified:
    incubator/sling/trunk/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/BundleInstallMojo.java

Modified: incubator/sling/trunk/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/BundleInstallMojo.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/BundleInstallMojo.java?rev=575770&r1=575769&r2=575770&view=diff
==============================================================================
--- incubator/sling/trunk/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/BundleInstallMojo.java
(original)
+++ incubator/sling/trunk/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/BundleInstallMojo.java
Fri Sep 14 11:30:50 2007
@@ -20,6 +20,7 @@
 import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
+import java.net.ConnectException;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.jar.JarFile;
@@ -123,6 +124,7 @@
 	    // don't do anything, if this step is to be skipped
 	    if (skip) {
 	        getLog().debug("Skipping bundle installation as instructed");
+	        return;
 	    }
 
         // only upload if packaging as an osgi-bundle
@@ -174,6 +176,9 @@
                 getLog().error(
                     "Install failed, cause: " + HttpStatus.getStatusText(status));
             }
+        } catch (ConnectException ce) {
+            getLog().info("Install on " + targetURL + " failed, cause: " + ce.getMessage());
+            getLog().debug(ce); // dump on debug
         } catch (Exception ex) {
             getLog().error(ex.getClass().getName() + " " + ex.getMessage());
             ex.printStackTrace();



Mime
View raw message