]> source.dussan.org Git - aspectj.git/commitdiff
consider aop-ajc.xml as resource creation
authoraclement <aclement>
Mon, 23 Mar 2009 15:40:05 +0000 (15:40 +0000)
committeraclement <aclement>
Mon, 23 Mar 2009 15:40:05 +0000 (15:40 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java

index cec06359e71cb63d3f0ec31cbff31f738a3d1309..15df3fc6e31c536650cc948273d025093835ae95 100644 (file)
@@ -647,9 +647,14 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour
                                zos.write(baos.toByteArray());
                                zos.closeEntry();
                        } else {
-                               OutputStream fos = FileUtil.makeOutputStream(new File(outputDir, filename));
+                               File outputFile = new File(outputDir, filename);
+                               OutputStream fos = FileUtil.makeOutputStream(outputFile);
                                fos.write(baos.toByteArray());
                                fos.close();
+                               if (buildConfig.getCompilationResultDestinationManager() != null) {
+                                       buildConfig.getCompilationResultDestinationManager().reportFileWrite(outputFile.getPath(),
+                                                       CompilationResultDestinationManager.FILETYPE_RESOURCE);
+                               }
                        }
                }
        }