struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject svn commit: r883864 - /struts/struts2/trunk/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowJarsAction.java
Date Tue, 24 Nov 2009 20:41:14 GMT
Author: wesw
Date: Tue Nov 24 20:41:13 2009
New Revision: 883864

URL: http://svn.apache.org/viewvc?rev=883864&view=rev
Log:
fixing build

Modified:
    struts/struts2/trunk/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowJarsAction.java

Modified: struts/struts2/trunk/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowJarsAction.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowJarsAction.java?rev=883864&r1=883863&r2=883864&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowJarsAction.java
(original)
+++ struts/struts2/trunk/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowJarsAction.java
Tue Nov 24 20:41:13 2009
@@ -23,6 +23,7 @@
 
 import java.io.IOException;
 import java.net.URL;
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
@@ -41,8 +42,18 @@
     List<Properties> poms;
     
     @Inject
-    public void setContainer(Container container) throws IOException {
-        poms = configHelper.getJarProperties();
+    public void setContainer(Container container) {
+        try {
+            poms = configHelper.getJarProperties();
+        }
+        catch (IOException ioe) {
+            // this is the config browser, so it doesn't seem necessary to do more than just
+            // send up a debug message
+            if (LOG.isDebugEnabled()) {
+                LOG.debug("IOException caught while retrieving jar properties - " + ioe.getMessage());
+            }
+            poms = Collections.EMPTY_LIST; // maybe avoiding NPE later
+        }
     }
     
     public List<Properties> getJarPoms()



Mime
View raw message