Return-Path: Delivered-To: apmail-incubator-sling-commits-archive@locus.apache.org Received: (qmail 216 invoked from network); 14 Sep 2007 18:33:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Sep 2007 18:33:03 -0000 Received: (qmail 91663 invoked by uid 500); 14 Sep 2007 18:32:56 -0000 Delivered-To: apmail-incubator-sling-commits-archive@incubator.apache.org Received: (qmail 91632 invoked by uid 500); 14 Sep 2007 18:32:56 -0000 Mailing-List: contact sling-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sling-dev@incubator.apache.org Delivered-To: mailing list sling-commits@incubator.apache.org Received: (qmail 91623 invoked by uid 99); 14 Sep 2007 18:32:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Sep 2007 11:32:56 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Sep 2007 18:34:45 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3429A1A9832; Fri, 14 Sep 2007 11:32:40 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: sling-commits@incubator.apache.org From: fmeschbe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070914183240.3429A1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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();