]> source.dussan.org Git - aspectj.git/commitdiff
guard for non-dir
authoraclement <aclement>
Sat, 6 Sep 2008 02:47:48 +0000 (02:47 +0000)
committeraclement <aclement>
Sat, 6 Sep 2008 02:47:48 +0000 (02:47 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java

index 8911c4be23fb13c8617707531aba4853146518ea..cb9a2e1f3ea74aa116fd10d381f03f6675422e8f 100644 (file)
@@ -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()) {