From: aclement Date: Sat, 6 Sep 2008 02:47:48 +0000 (+0000) Subject: guard for non-dir X-Git-Tag: V1_6_2~86 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2db57c9bd1c93f619f602fad1ac82034e6a18768;p=aspectj.git guard for non-dir --- 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()) {