Hi Vincent,

Indeed running AspectJ AFTER Clover works. I'm using that for now, so that I at 
least have SOME Clover data.
The thing I would like though, is to run AspectJ BEFORE Clover runs, so I also 
have Clover data on the AspectJ-sources!
As I see it, there are 2 ways to do this:

1) AspectJ weaves his new files and writes them out as sources so Clover can 
work on them. The problem here will be that
Clover can't show the reports on AspectJ-files, but rather on the weaved files. 
It's a solution, but what would be really great
is:
2) Clover examines the AspectJ sources and adds his statements to those files. 
Then AspectJ can do his normal thing and
Clover's reports should show the coverage in the correct files and calculate 
the EXACT amount of times the statements have
been called.

Unfortunately I already heard from Cenqua that atm Clover doesn't know how to 
handle AspectJ sources... So I think that the
plugin will have the same problems...

Thanks anyway,

Roland



On Tuesday 30 May 2006 16:19, you wrote:
> Hi Roland,
>
> I don't see a problem unless you're using aspectj on bytecode and you wish
> to have the aspectified code to be under Clover. This won't be possible as
> Clover works on source code.
>
> The Clover plugin will automatically generate a parallel build tree and
> modify the maven source path so that it points to the clovered sources.
> Thus applying AspectJ after the Clover plugin should work.
>
> For the other way around, I can't tell as I haven't checked how the AspectJ
> plugin for m2 works.
>
> Thanks
> -Vincent
>
> > -----Original Message-----
> > From: Roland Asmann [mailto:[EMAIL PROTECTED]
> > Sent: lundi 22 mai 2006 17:46
> > To: Maven Users List
> > Subject: Maven2, AspectJ and Clover
> >
> > Hi,
> >
> > Could anybody tell if it is possible (and how) to have maven clover the
> > aspects that
> > aspectj will use to make closures?
> > I am working on an application that builds on aspectj in some of the key-
> > moments
> > and I would like to know the code coverage on those places.
> >
> > Thanks,
> >
> > Roladn
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ___________________________________________________________________________
> Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son
> interface révolutionnaire. http://fr.mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to