You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Rod Coffin <rf...@gmail.com> on 2005/08/04 04:47:26 UTC

AspectWerkz Plugin WAS: [M2] Forking Surefire Test

Brett,
 I'm replying to the dev list instead because I'd like to continue the 
discussion but didn't think the entire user community would necessarily be 
interested...
 Thanks, I actually have two more articles coming out in the next couple of 
months and am planning on using M2 as the build tool for the example 
application of each. The next article is going to illustrate how to use 
meta-data driven aspects with JDK 1.4. To do this I plan on using 
AspectWerkz and have written a M2 AspectWerkz plugin to run the AspectWerkzC 
compiler to weave aspects. I plan on enhancing it shortly to also be able to 
run the AnnotationC compiler to compile javadoc attributes into the classes. 
I'd like to contribute this plugin to M2. Would this be helpful and if so 
how would I go about doing so?
 Also, the forking issue that I mentioned in my original post is keeping me 
from being able to execute unit tests depending on aspects directly from 
surefire. They work fine if I kick off an ant task and fork the process, but 
that would kind of defeat the purpose of using M2 for the build. I would be 
happy to work on it if you could provide some guidance. Otherwise I at least 
plan on using the ant tasks for M2 (which I really, really like BTW).
 Regards,
 Rod
 On 8/3/05, Brett Porter <br...@gmail.com> wrote: 
> 
> Hi Rod,
> 
> This has been requested (and is in JIRA), but hasn't been implemented
> yet. I'd be happy to provide guidance to anyone looking to contribute
> that.
> 
> Nice article on DevX by the way - and please feel free to drop the
> developers list a line if you are writing any in the future. We're
> always happy to give feedback.
> 
> Cheers,
> Brett
> 
> On 8/4/05, Rod Coffin <rf...@gmail.com> wrote:
> > Does anyone know if there is a way to fork surefire unit tests? I have a
> > particular scenario where this appears to be a requirement. I know how 
> to do
> > this with Ant and M1 but not M2. Any help would certainly be 
> appreciated.
> > Rod
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

Re: AspectWerkz Plugin WAS: [M2] Forking Surefire Test

Posted by Brett Porter <br...@gmail.com>.
On 8/4/05, Rod Coffin <rf...@gmail.com> wrote:
> Thanks, I actually have two more articles coming out in the next couple of
> months and am planning on using M2 as the build tool for the example
> application of each.  The next article is going to illustrate how to use
> meta-data driven aspects with JDK 1.4.  To do this I plan on using
> AspectWerkz and have written a M2 AspectWerkz plugin to run the AspectWerkzC
> compiler to weave aspects.  I plan on enhancing it shortly to also be able
> to run the AnnotationC compiler to compile javadoc attributes into the
> classes.  I'd like to contribute this plugin to M2.  Would this be helpful
> and if so how would I go about doing so? 

This is great to hear. I was a little uncertain about what was
happening since aspectwerkz and aspectj were merging. We don't have an
aspectj plugin yet, but there has been some discussion recently on the
users list if you wanted to look it up.

Anyway, we'd be happy to review the plugin and possibly accept it to
the mojo.codehaus.org project where we are encouraging the development
of plugins for specific tools (especially if they have licenses that
don't allow distribution from Apache).

> Also, the forking issue that I mentioned in my original post is keeping me
> from being able to execute unit tests depending on aspects directly from
> surefire.  They work fine if I kick off an ant task and fork the process,
> but that would kind of defeat the purpose of using M2 for the build.  I
> would be happy to work on it if you could provide some guidance.  

Sure. The code would need to go into surefire and for now use the
Commandline class from plexus-utils. We are collaborating with some
people in jakarta-commons to setup a decent execution framework for
external processes (and jvms), based on that code and the code from
Ant.

It would be good to have the same configuration available in Ant -
fork per test suite (best) and fork per test (slow but may be
necessary in rare cases).

> I at least plan on using the ant tasks for M2 (which I really, really like
> BTW). 

Thanks!

Cheers,
Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org