On Tue, 2002-10-15 at 19:22, I-Everton, Dan wrote: > I'm trying to use Aspects in my unit tests but I can't quite see my way to > getting the compiled aspects into the unit test classpath (nor get the > aspects to see things in the unit test classpath).
So you are trying to use aspects simply for testing. I'm just want to make sure I understand you as I wanted to write some standard aspects for testing standard things like accessors just to make sure they work correctly. I was going to try and use the preprocessor option and generate java sources and then use the method that the antlr plugin uses to dynamically add a new source path. It would be very cool to integrate some standard testing aspects for projects that may or may not use aspects. > The source for the aspects are in their own directory seperate from the > normal Java source and the unit test source. I think letting the aspects getting weaved and processed to produce standard java sources might be the best option for this. This isn't how ajc works now, but the preprocessing option has been left as many people use it. And it's great if you want to see how the weaving of aspects is actually working. > I looked at the AspectJ plugin and couldn't see any obvious way of tweaking > it to do this. Anything I could come up with involved copying the aspect > plugin.jelly file wholesale in to my maven.xml. > > Is there a more elegant way to do this? > > Dan > > -- > Dan Everton (Engineering Infrastructure Coordinator) > Central Engineering, Boeing Australia Limited > Phone: +61 07 3306 3288 -- Email: [EMAIL PROTECTED] > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- jvz. Jason van Zyl [EMAIL PROTECTED] http://tambora.zenplex.org In short, man creates for himself a new religion of a rational and technical order to justify his work and to be justified in it. -- Jacques Ellul, The Technological Society -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
