Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] Load-time weaving with Eclipse RCP application

Hi

Can you send me the exact command line you are using asuming f.e. you
have ASPECTJ_HOME and ECLIPSE_HOME set ?

I am not familiar with that but I would assume you need to use -vmargs
Eclipse option and sort of.
Thanks

On 7/1/05, Stephan Kolp <stephan.kolp@xxxxxxxxxx> wrote:
> Hello,
> 
> I posted this problem to eclipse.technology.aspectj and I was suggested
> to post
> it here:
> 
> I want to use load-time weaving with an Eclipse RCP Application and
> the -javaagent:aspectweaver.jar option but it doesn'nt work as it should.
> 
> I start the application with
> 
> java -javaagent:%ASPECTJ_HOME%\lib\aspectweaver.jar
>    org.eclipse.core.launcher.Main
> 
> My aop.xml looks like this:
> 
> <aspectj>
>   <aspects>
>     <aspect name="util.logging.LoggingAspect"/>
>   </aspects>
>   <weaver options=" -nowarn">
>     <include within="rcpdemo.*"/>
>  </weaver>
> </aspectj>
> 
> 
> My aspect generates an output before any method call. This works fine for
> simple java applications but not for RCP applications. Allthough I get a
> lot
> of messages that classes are going to be woven (e. g.
> WeavingAdaptor.weaveClass org/eclipse/ui/internal/PerspectiveHelper) the
> desired output from the aspect does not appear.
> 
> When I change the 'include within' attribute of aop.xml to "*" I get the
> same WeavingAdaptor messages and additional output from my aspect. But the
> aspect does not create output from method calls within any plugin. The
> output appears only for method calls within the eclipse launcher in the
> startup.jar.
> 
> I know about the AJEER plugin but it works only with the AJDT 1.1.12 which
> are available for Eclipse 3.0. But is there any possibility to use
> load-time
> weaving with RCP applications developed with Eclipse 3.1 and upcoming
> versions?
> 
> Regards, Stephan
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-dev
>


Back to the top