activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r915009 - /activemq/trunk/activemq-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/MultiSourceGenerator.java
Date Mon, 22 Feb 2010 18:33:23 GMT
Author: rajdavies
Date: Mon Feb 22 18:33:22 2010
New Revision: 915009

URL: http://svn.apache.org/viewvc?rev=915009&view=rev
Log:
work around processClass() issue

Modified:
    activemq/trunk/activemq-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/MultiSourceGenerator.java

Modified: activemq/trunk/activemq-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/MultiSourceGenerator.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/MultiSourceGenerator.java?rev=915009&r1=915008&r2=915009&view=diff
==============================================================================
--- activemq/trunk/activemq-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/MultiSourceGenerator.java
(original)
+++ activemq/trunk/activemq-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/MultiSourceGenerator.java
Mon Feb 22 18:33:22 2010
@@ -23,7 +23,6 @@
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
-
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.taskdefs.FixCRLF;
 import org.codehaus.jam.JClass;
@@ -59,9 +58,14 @@
 
         JamClassIterator iter = getClasses();
         while (iter.hasNext()) {
-            jclass = iter.nextClass();
-            if (isValidClass(jclass)) {
-                processClass(jclass);
+            try {
+                jclass = iter.nextClass();
+                if (isValidClass(jclass)) {
+                    processClass(jclass);
+                }
+            } catch (Exception e) {
+                System.err.println("Unable to process: " + jclass);
+                e.printStackTrace();
             }
         }
         return null;



Mime
View raw message