Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » equinox aspect and config.ini
equinox aspect and config.ini [message #668039] Tue, 03 May 2011 13:49 Go to next message
moha  is currently offline moha Friend
Messages: 43
Registered: March 2011
Member
Hi,

I want to execute a method before the creation of an eclipse project
using aspect . for that i developped a bundle wich contains an pointcut and an advice .I added this bundle and the aspectj bundles [ org.aspectj.runtime,org.aspectj.weaver,org.eclipse.equinox.w eaving.caching.j9,org.eclipse.equinox.weaving.aspectj,org.ec lipse.equinox.weaving.hook] to eclipse plugins folder.

how to modify config.ini in order to execute my aspect.

thanks.
Re: equinox aspect and config.ini [message #668140 is a reply to message #668039] Wed, 04 May 2011 03:33 Go to previous messageGo to next message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 382
Registered: July 2009
Senior Member
Have you read the quickstart page on equinox aspects?

http://www.eclipse.org/equinox/incubator/aspects/equinox-asp ects-quick-start.php

You need to make some changes to the manifest file of your bundle. If your target platform already has AJDT installed (and JDT weaving is enabled), then you don't need to do anything else.

Let me know if this works for you.
Re: equinox aspect and config.ini [message #668152 is a reply to message #668140] Wed, 04 May 2011 07:31 Go to previous messageGo to next message
moha  is currently offline moha Friend
Messages: 43
Registered: March 2011
Member
Hi Andrew,

I have read the quickstart page and the example works fine for me.

But what i want to do is to add eclipse.equinox.weaving.demo.aspects to the plugins folder of an eclipse in order to execute the advice defined in this plugin when a plugin eclipse.equinox.demo.wizard start .In other words i don't excute my plugin eclipse.equinox.demo.wizard using RUN as ...
but i launch it from eclipse when i click NEW project for instance.
I think i have to modify the config.ini file of the launched eclipse(use custom config.ini).
look at the last paragraph of the quick start page "Using Equinox
Aspects with Eclipse Applications".

any ideas.

thanks Wink
Re: equinox aspect and config.ini [message #668322 is a reply to message #668152] Thu, 05 May 2011 08:28 Go to previous message
moha  is currently offline moha Friend
Messages: 43
Registered: March 2011
Member
Hi,

i added some informations about aspectj plugins in my config.ini and it works fine for me :

i added this line :

osgi.bundles=reference\:file\:org.aspectj.runtime_1.6.11.201 10304135300,reference\:file\:org.aspectj.weaver_1.6.11.20110 304135300,reference\:file\:org.eclipse.equinox.weaving.aspectj_1.0.0.v20100108.jar@2\:start,reference\:file\: org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar @1\:start


%.
Previous Topic:How to share compiler settings across working set
Next Topic:Servlet Run on Server asks if I want to save file???
Goto Forum:
  


Current Time: Wed Dec 13 09:35:47 GMT 2017

Powered by FUDForum. Page generated in 0.02031 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software