felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r672201 - /felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/BundleRepositoryRender.java
Date Fri, 27 Jun 2008 09:50:21 GMT
Author: fmeschbe
Date: Fri Jun 27 02:50:21 2008
New Revision: 672201

URL: http://svn.apache.org/viewvc?rev=672201&view=rev
Log:
Show Repository URL as link (opens in a new window) and fix an issue
when a repository has no resources.

Modified:
    felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/BundleRepositoryRender.java

Modified: felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/BundleRepositoryRender.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/BundleRepositoryRender.java?rev=672201&r1=672200&r2=672201&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/BundleRepositoryRender.java
(original)
+++ felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/BundleRepositoryRender.java
Fri Jun 27 02:50:21 2008
@@ -129,6 +129,12 @@
                 pw.println( "<tr class='content'>" );
                 pw.println( "<td class='content'>" + repo.getName() + "</td>"
);
                 pw.println( "<td class='content'>" + repo.getURL() + "</td>"
);
+
+                pw.print ( "<td class='content'>" );
+                pw.print ( "<a href='" + repo.getURL() + "' target='_blank' title='Show
Repository " + repo.getURL()
+                    + "'>" + repo.getURL() + "</a>" );
+                pw.println( "</td>" );
+
                 pw.println( "<td class='content'>" + new Date( repo.getLastModified()
) + "</td>" );
                 pw.println( "<td class='content'>" );
                 pw.println( "<form>" );
@@ -261,7 +267,7 @@
         for ( int i = 0; i < repos.length; i++ )
         {
             Resource[] resources = repos[i].getResources();
-            for ( int j = 0; j < resources.length; j++ )
+            for ( int j = 0; resources != null && j < resources.length; j++ )
             {
                 Resource res = resources[j];
                 Version ver = ( Version ) bundles.get( res.getSymbolicName() );



Mime
View raw message