[prev in list] [next in list] [prev in thread] [next in thread] 

List:       groovy-user
Subject:    Re: [groovy-user] Can't get Java + Groovy and AspectJ CTW to work
From:       "Yoav" <yoav_ () hotmail ! com>
Date:       2009-05-27 16:18:24
Message-ID: BAY108-DAV12677FA0F3455B05DC59D091530 () phx ! gbl
[Download RAW message or body]

I got it working (at least in some way) althought not with CTW.

----- Original Message ----- 
From: "Andrew Eisenberg" <andrew@eisenberg.as>
To: <user@groovy.codehaus.org>
Sent: Tuesday, May 26, 2009 7:19 PM
Subject: Re: [groovy-user] Can't get Java + Groovy and AspectJ CTW to work


Congratulations! As far as I know, you are breaking new ground.  :)  I
have not heard of anyone trying to do this yet.

The problem may have to do with the groovy and aspectj compilers not
being compatible.  You may be able to get around this by partitioning
your system up correctly.

Try this:

1. Compile your groovy other non-aspect files first
2. Use binary weaving and put the class files created previously onto
your inpath
3. This should produce woven binaries

However, I don't know if this is possible from maven because the
aspectj-maven plugin does not support inpath (only aspect path)

I think it is very worthwhile to ensure that AspectJ can consume
groovy binaries, so let's try to make this work.  Let me know if this
works for you.

--a

On Tue, May 26, 2009 at 12:14 AM, Hanack, Leif <leif.hanack@hypoport.de> 
wrote:
> Hi, I’m a newbie and have some trouble to get Java + Groovy with AspectJ
> Compile Time Weaving to work.
>
>
>
> I have a maven project and I’m using the gmaven plugin. Because I want to
> use groovy classes from java and
>
> vice versa I enabled the “generateStubs”.
>
>
>
> When load time weaving is enabled everything seems to be fine. When 
> compile
> time weaving is enabled I receive
>
> a “Stubbed Error”. This is reproducible and did not depend upon a clean.
>
>
>
> I googled but could not find anyone who had my problem. I’m irritated? 
> What
> did I do wrong? Or is it so uncommon
>
> using java + groovy + aspectj ctw?
>
>
>
> Thanks in advance for any help!
>
>
>
> Regards, Leif

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic