From 2db57c9bd1c93f619f602fad1ac82034e6a18768 Mon Sep 17 00:00:00 2001 From: aclement Date: Sat, 6 Sep 2008 02:47:48 +0000 Subject: [PATCH] guard for non-dir --- .../src/org/aspectj/ajdt/internal/core/builder/AjState.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java index 8911c4be2..cb9a2e1f3 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java @@ -412,6 +412,11 @@ public class AjState implements CompilerConfigurationChangeFlags { * */ private int classFileChangedInDirSinceLastBuildRequiringFullBuild(File dir) { + + if (!dir.isDirectory()) { + return CLASS_FILE_CHANGED_THAT_NEEDS_FULL_BUILD; + } + // Are we managing that output directory? AjState state = IncrementalStateManager.findStateManagingOutputLocation(dir); if (listenerDefined()) { -- 2.39.5