work around processClass() issue

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@915009 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2010-02-22 18:33:22 +00:00
parent ac0462acef
commit 9ffd8b06be
1 changed files with 8 additions and 4 deletions

View File

@ -23,7 +23,6 @@ import java.util.ArrayList;
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 @@ public abstract class MultiSourceGenerator extends OpenWireGenerator {
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;