From 2549404ca35f27cdef2bfedd91092e186c7029e5 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Tue, 14 Jan 2003 22:09:55 +0000 Subject: [PATCH] doing batch builds when previous incremental build failed badly --- .../aspectj/ajdt/internal/core/builder/AjBuildManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java index 562055a5c..a55df3cd3 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java @@ -151,6 +151,11 @@ public class AjBuildManager { } public boolean incrementalBuild(AjBuildConfig buildConfig, IMessageHandler messageHandler) throws CoreException, IOException { + if (javaBuilder == null || javaBuilder.currentProject == null) { + return batchBuild(buildConfig, messageHandler); + } + + final CountingMessageHandler counter = new CountingMessageHandler(messageHandler); try { currentHandler = counter; -- 2.39.5