Return-Path: X-Original-To: apmail-sling-commits-archive@www.apache.org Delivered-To: apmail-sling-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 440D3DBC7 for ; Tue, 14 Aug 2012 05:47:01 +0000 (UTC) Received: (qmail 37405 invoked by uid 500); 14 Aug 2012 05:47:00 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 37313 invoked by uid 500); 14 Aug 2012 05:46:59 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 37294 invoked by uid 99); 14 Aug 2012 05:46:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 05:46:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 05:46:58 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 49B2623888EA; Tue, 14 Aug 2012 05:46:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1372734 - /sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/console/OsgiInstallerWebConsolePlugin.java Date: Tue, 14 Aug 2012 05:46:15 -0000 To: commits@sling.apache.org From: cziegeler@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120814054615.49B2623888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cziegeler Date: Tue Aug 14 05:46:14 2012 New Revision: 1372734 URL: http://svn.apache.org/viewvc?rev=1372734&view=rev Log: Print status msg if no resources are registered Modified: sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/console/OsgiInstallerWebConsolePlugin.java Modified: sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/console/OsgiInstallerWebConsolePlugin.java URL: http://svn.apache.org/viewvc/sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/console/OsgiInstallerWebConsolePlugin.java?rev=1372734&r1=1372733&r2=1372734&view=diff ============================================================================== --- sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/console/OsgiInstallerWebConsolePlugin.java (original) +++ sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/console/OsgiInstallerWebConsolePlugin.java Tue Aug 14 05:46:14 2012 @@ -100,8 +100,12 @@ public class OsgiInstallerWebConsolePlug throws IOException { final PrintWriter pw = res.getWriter(); - pw.print("

Apache Sling OSGi Installer

"); final InstallationState state = this.installer.getInstallationState(); + pw.print("

Apache Sling OSGi Installer"); + if ( state.getActiveResources().size() == 0 && state.getInstalledResources().size() == 0 && state.getUntransformedResources().size() == 0 ) { + pw.print(" - no resources registered."); + } + pw.print("

"); String rt = null; for(final ResourceGroup group : state.getActiveResources()) {