Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328649

Summary: Support registering additional dependencies from compilation participants
Product: [Tools] AspectJ Reporter: Andrew Clement <aclement>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.6.10   
Target Milestone: 1.6.11   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Andrew Clement CLA 2010-10-25 15:25:04 EDT
A compilation participant can add new dependencies to a file, we should support this in the AjState object and surface it through the AjCompiler
Comment 1 Andrew Clement CLA 2010-10-25 16:23:19 EDT
proposed changes committed to AspectJ and to AJDT (e36).  No tests for this yet though...
Comment 2 Andrew Eisenberg CLA 2010-10-26 00:23:53 EDT
Unfortunately, I don't think these changes will work.  The first method to AjCompiler.addDependencies is a CompilationResult object, which AJDT does not have easy access to.  Any possibility that you could rework the method so that it takes a java.io.File object instead?
Comment 3 Andrew Clement CLA 2010-10-26 15:40:36 EDT
changed api to take a file.  test also now added.  It works but the dependency being recorded is still only obeyed when a structural change occurs - hope that is the meaning intended by the participant in question.