Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

catch exceptions that are thrown by concrete build participants to avoid

interference with normal Java build process
  • Loading branch information...
commit 3c3de91df0312432ee6b6fb801b6778627af5bc1 1 parent 23541a7
@mirkoseifert mirkoseifert authored
View
21 ...de.devboost.eclipse.jdtutilites/src/de/devboost/eclipse/jdtutilities/AbstractCompilationParticipant.java
@@ -59,15 +59,20 @@ public void buildStarting(BuildContext[] files, boolean isBatch) {
public void buildFinished(IJavaProject project) {
super.buildFinished(project);
- // we use an iterator to avoid ConcurrentModificationExceptions
- List<CompilationEvent> events = new ArrayList<CompilationEvent>();
- Iterator<CompilationEvent> it = files.iterator();
- while (it.hasNext()) {
- CompilationEvent event = it.next();
- events.add(event);
- it.remove();
+ try {
+ // we use an iterator to avoid ConcurrentModificationExceptions
+ List<CompilationEvent> events = new ArrayList<CompilationEvent>();
+ Iterator<CompilationEvent> it = files.iterator();
+ while (it.hasNext()) {
+ CompilationEvent event = it.next();
+ events.add(event);
+ it.remove();
+ }
+ buildFinished(events);
+ } catch (Throwable t) {
+ // TODO: handle exception
+ t.printStackTrace();
}
- buildFinished(events);
}
@Override
Please sign in to comment.
Something went wrong with that request. Please try again.