Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328649 - Support registering additional dependencies from compilation participants
Summary: Support registering additional dependencies from compilation participants
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.6.10   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 1.6.11   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-25 15:25 EDT by Andrew Clement CLA
Modified: 2010-10-26 15:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.