]> source.dussan.org Git - aspectj.git/commitdiff
258325: refix
authoraclement <aclement>
Sat, 13 Dec 2008 01:45:29 +0000 (01:45 +0000)
committeraclement <aclement>
Sat, 13 Dec 2008 01:45:29 +0000 (01:45 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java

index 494880666ddf711ef7b13e2e3a96b13f5099aa2d..d17692fd88eb7de5ab6413450cc5d2f46fcc134e 100644 (file)
@@ -1077,12 +1077,12 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour
                                } else {
                                        outFile = new File(destinationPath, filename).getPath();
                                }
-                               if (buildConfig.getCompilationResultDestinationManager() != null) {
-                                       buildConfig.getCompilationResultDestinationManager().reportClassFileWrite(outFile);
-                               }
                                BufferedOutputStream os = FileUtil.makeOutputStream(new File(outFile));
                                os.write(classFile.getBytes());
                                os.close();
+                               if (buildConfig.getCompilationResultDestinationManager() != null) {
+                                       buildConfig.getCompilationResultDestinationManager().reportClassFileWrite(outFile);
+                               }
                                return outFile;
                        }