Bug 95516 - aop.xml -outjar
Summary: aop.xml -outjar
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: 1.5.0RC1   Edit
Assignee: Matthew Webster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-17 05:17 EDT by Alexandre Vasseur CLA
Modified: 2005-11-09 02:45 EST (History)
0 users

See Also:


Attachments
Patch, testcases and documentation (7.25 KB, application/octet-stream)
2005-11-04 10:45 EST, Matthew Webster CLA
no flags Details
Patch and testcases (1.65 KB, application/octet-stream)
2005-11-07 11:48 EST, Matthew Webster CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Vasseur CLA 2005-05-17 05:17:24 EDT
to do as defined in docs
(includes <weaver options=/> as the ones used in AJC + gather all aspects found
(ie even those from aspectpatth etc)
Comment 1 Adrian Colyer CLA 2005-09-27 05:44:29 EDT
assigning P2 in the run-up to AJ 5 RC1
Comment 2 Matthew Webster CLA 2005-10-11 09:08:01 EDT
This capability is being introduced in AJDT Bug 71066. Do we still need this 
enhancement?
Comment 3 Alexandre Vasseur CLA 2005-10-11 10:48:40 EDT
I would think so for Ant ajc purpose f.e.
ajc -outjar aop.jar Aspect.aj

=> aop.jar/META-INF/aop.xml

TBD:
- do we want to add an extra -outxml option to ajc or should it be default from now.
- do we really want to have the ajc options written in aop.xml weaver options
(I may want verbose or noinline now but may decide something different later on
at deploy time etc). I 'd say we don't put any option in the gen. file
Comment 4 Matthew Webster CLA 2005-10-13 10:30:50 EDT
The primary use case for this will be Ant because AJDT has its own solution in 
bug 71066. I like the -outxml option but it should only produce <aspect> 
elements not <weaver>. The best approach would be for the user to create a 
template aop.xml with the required weaver options and include/excludes then 
_include_ the generated aop.xml.

- Can we support this?
- In the light of recent revelations concerning the side affects of abstract 
aspects (http://dev.eclipse.org/mhonarc/lists/aspectj-dev/msg01785.html) we 
need to include more that just concrete aspects in the generated aop.xml. Can 
we safely include all abstract aspects?
Comment 5 Alexandre Vasseur CLA 2005-10-26 12:27:31 EDT
that is abstract aspect containing ITD should be in the aop.xml

this reminds me that right now LTW issue a warning when abstract aspect is used
in <aspect/> instead of <concrete-aspect/>
This requires some change. Don't know what logic is best though.
Comment 6 Matthew Webster CLA 2005-11-03 07:46:12 EST
I think we need to modes: one simple for use with -outjar the other where the 
user can specifiy the filename for more complex environments e.g. OSGi:
1. ajc -outxml -outjar=aspects.jar ...
2. ajc -outxmlfile org/aspectj/aop.xml ...
Comment 7 Matthew Webster CLA 2005-11-04 10:45:59 EST
Created attachment 29336 [details]
Patch, testcases and documentation

ajde: testcase for -outxml and -outxmlfile
docs: development guide
org.aspectj.ajdt.core: add new options
testing: support in harness
tests: ltw functional tests
Comment 8 Matthew Webster CLA 2005-11-04 10:46:40 EST
I will add Ant support in a separate patch.
Comment 9 Matthew Webster CLA 2005-11-07 11:48:39 EST
Created attachment 29442 [details]
Patch and testcases

ajde: Test missing from first patch
taskdefs: Ant support
Comment 10 Matthew Webster CLA 2005-11-07 12:09:51 EST
Now that this enhancement is complete the patch added to bug 95529 (if it's 
too broken I'll fix it) needs to be integrated. The generated aop.xml file 
will contain a list of _all_ aspects including abstract ones because they can 
have side affects and are benign otherwise. The patch tests this and removes 
this existing warning in ClassLoaderWeavingAdaptor.
Comment 11 Andrew Clement CLA 2005-11-08 07:15:27 EST
Patch integrated - will close this bug when build is available.  Now going to
take a look at 95529 to see if theres more to do there..
Comment 12 Andrew Clement CLA 2005-11-09 02:45:55 EST
build available containing the patches.