headless AJDT: one aspect, many projects [message #778293] |
Thu, 12 January 2012 07:55 |
Missing name Missing name Messages: 4 Registered: January 2012 |
Junior Member |
|
|
hello, everyone.
i am running eclipse 3.5. quick disclaimer: please do not ask me why such an old version, or tell me that i should upgrade to at least 3.6. believe me, i cannot wait to move to a more recent version, but i am "married" to this version for the moment.
i also have AJDT 2.1.1 in the "dropins" dir.
my rcp application is comprised of a number of plugin projects, with one of those projects bearing a single aspect (.aj) file. the aspect-bearing project exports the package with the aspect file, and all of my other projects reference this project via "Require-Bundle". the aspect-bearing project also contains an aop.xml in its META-INF.
my goal is to weave all of the projects via an ajdt-pde headless build. i have converted all the projects to be woven into AspectJ projects. then i right-click on each, select "AspectJ Tools"->"Configure AspectJ Build Path", click on "Aspect Path" tab, and then select the build output folder for the aspect file via "Add Class Folder" button. that does the trick in the ide, as all those projects get woven and work exactly as i want them to. however, i do not get the same result via the headless build. the app builds fine, yet only the aspect-bearing project gets woven. the rest of the projects do not. please help me! thank you!!!
|
|
|
|
Re: headless AJDT: one aspect, many projects [message #778534 is a reply to message #778524] |
Fri, 13 January 2012 07:00 |
Missing name Missing name Messages: 4 Registered: January 2012 |
Junior Member |
|
|
Andrew,
boy, am i glad that you replied. i have been reading some of your posts here and there, and i was really hoping that you would be the one to guide me. unfortunately, the release of my app is locked into eclipse 3.5. that is just how things work around here. i am fully aware how much better ajdt headless has become in eclipse 3.6, as a month ago i stumbled upon the very page that the first link in your post points to. and i cannot wait to switch to a more recent eclipse version in subsequent releases of my app.
the thing is that it is not a complete and total loss on my part. the build works, as the only aspect-bearing project gets woven just fine. the problem is that all other projects that import that aspect-bearing project do not get woven. so i am not sure if the second link that you provided in your post would be of any help for me. it seems to be covering the very issue of ajdt-pde building fundamentals, while my issue has to do with weaving multiple projects with a single "centralized" aspect. please let me know whether or not i am correct.
lastly, i guess i can place the same aspect aj file into each and every project, but that is a last resort approach.
thank you!!!
[Updated on: Fri, 13 January 2012 08:44] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02990 seconds