From f23fb4f9cbd0090c8092520415b237eb458d02d8 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 23 Mar 2009 15:40:05 +0000 Subject: [PATCH] consider aop-ajc.xml as resource creation --- .../aspectj/ajdt/internal/core/builder/AjBuildManager.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); + } } } } -- 2.39.5