incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
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 GMT
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("<p class='statline ui-state-highlight'>Apache Sling OSGi Installer</p>");
         final InstallationState state = this.installer.getInstallationState();
+        pw.print("<p class='statline ui-state-highlight'>Apache Sling OSGi Installer");
+        if ( state.getActiveResources().size() == 0 && state.getInstalledResources().size()
== 0 && state.getUntransformedResources().size() == 0 ) {
+            pw.print(" - no resources registered.");
+        }
+        pw.print("</p>");
 
         String rt = null;
         for(final ResourceGroup group : state.getActiveResources()) {



Mime
View raw message