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

rombert pushed a commit to annotated tag maven-sling-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-sling-plugin.git

commit a9dbefbdf753696a15dd724ec0898d96efc52d91
Author: Felix Meschberger <[email protected]>
AuthorDate: Fri Sep 14 18:30:50 2007 +0000

    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
    
    git-svn-id: 
https://svn.apache.org/repos/asf/incubator/sling/trunk/maven-sling-plugin@575770
 13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/sling/maven/bundlesupport/BundleInstallMojo.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/src/main/java/org/apache/sling/maven/bundlesupport/BundleInstallMojo.java 
b/src/main/java/org/apache/sling/maven/bundlesupport/BundleInstallMojo.java
index 368aec6..09884d9 100644
--- a/src/main/java/org/apache/sling/maven/bundlesupport/BundleInstallMojo.java
+++ b/src/main/java/org/apache/sling/maven/bundlesupport/BundleInstallMojo.java
@@ -20,6 +20,7 @@ package org.apache.sling.maven.bundlesupport;
 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 @@ public class BundleInstallMojo extends AbstractMojo {
            // 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 @@ public class BundleInstallMojo extends AbstractMojo {
                 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();

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to