From: aclement Date: Mon, 23 Mar 2009 15:40:05 +0000 (+0000) Subject: consider aop-ajc.xml as resource creation X-Git-Tag: V1_6_4~47 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f23fb4f9cbd0090c8092520415b237eb458d02d8;p=aspectj.git consider aop-ajc.xml as resource creation --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java index cec06359e..15df3fc6e 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java @@ -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); + } } } }