diff options
author | aclement <aclement> | 2008-09-06 02:47:48 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-09-06 02:47:48 +0000 |
commit | 2db57c9bd1c93f619f602fad1ac82034e6a18768 (patch) | |
tree | 61ef5f5c69855621ba0425cc0de35b495e08e869 | |
parent | 75e2ab54e0b510601d26aeae95a15128a7d6de98 (diff) | |
download | aspectj-2db57c9bd1c93f619f602fad1ac82034e6a18768.tar.gz aspectj-2db57c9bd1c93f619f602fad1ac82034e6a18768.zip |
guard for non-dir
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | 5 |
1 files changed, 5 insertions, 0 deletions
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()) { |