Bug 309402

Summary: Changes to Main.java
Product: [Tools] AspectJ Reporter: Andrew Eisenberg <andrew.eisenberg>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: aclement
Version: unspecified   
Target Milestone: 1.6.9M1   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Andrew Eisenberg CLA 2010-04-15 19:09:23 EDT
In order to get the AJDT ant integration working, we need a small change to Main.java.

We need to be able to pass in a custom org.aspectj.bridge.ICommand object.  Currently, the ICommand object is created via reflection.

Here is my suggestion:

1. augment the ICommand local variable to being a field
2. add a setter for this field
3. change this:
ICommand command = ReflectionFactory.makeCommand(commandName, holder);
to this:
if (command != null)
  command = ReflectionFactory.makeCommand(commandName, holder);
Comment 1 Andrew Clement CLA 2010-04-16 11:18:31 EDT
done
Comment 2 Andrew Eisenberg CLA 2010-04-19 15:02:39 EDT
Yep.  These changes are working for me as expected.  Thanks.