]> source.dussan.org Git - aspectj.git/commitdiff
report after
authoraclement <aclement>
Fri, 20 Mar 2009 23:39:17 +0000 (23:39 +0000)
committeraclement <aclement>
Fri, 20 Mar 2009 23:39:17 +0000 (23:39 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java

index 0bc693674f5f1b56bed90d1771c752b83fad1289..3df93bbe6823a566ca38d83d27ed870e11fe456f 100644 (file)
@@ -1848,18 +1848,18 @@ public class AjState implements CompilerConfigurationChangeFlags {
                                });
                                if (weaverGenerated != null) {
                                        for (int i = 0; i < weaverGenerated.length; i++) {
+                                               weaverGenerated[i].delete();
                                                if (buildConfig != null && buildConfig.getCompilationResultDestinationManager() != null) {
                                                        buildConfig.getCompilationResultDestinationManager()
                                                                        .reportClassFileRemove(weaverGenerated[i].getPath());
                                                }
-                                               weaverGenerated[i].delete();
                                        }
                                }
                        }
+                       locationOnDisk.delete();
                        if (buildConfig != null && buildConfig.getCompilationResultDestinationManager() != null) {
                                buildConfig.getCompilationResultDestinationManager().reportClassFileRemove(locationOnDisk.getPath());
                        }
-                       locationOnDisk.delete();
                }
        }