[ http://jira.codehaus.org/browse/MOJO-291?page=comments#action_59244 ]
Kaare Nilsen commented on MOJO-291: ----------------------------------- Now also sent me as a mail and quoting : I've now the situation that I want to test my aspect. with the Aspect.aj file and the AspectTest.java file in the same project. Unfortunately, AspectTest.java is not instrumented when I put it in src/test/java. When the file is put in src/main/java, it actually is... When the test file is in a separate project, it is instrumented as well, regardless of its location. I've attached a log file with the output of the mvn clean test-compile command. The file src/test/java/.../AOPTraceTest.java is not instrumented while the file src/main/java/..../Example.java is. Hope you can help me. Best regards, Martin So i guess it is about the time of day where we need to fix this ;) > Test classes are not weaved with aspects from main folder > --------------------------------------------------------- > > Key: MOJO-291 > URL: http://jira.codehaus.org/browse/MOJO-291 > Project: Mojo > Type: Bug > Components: aspectj > Reporter: Carlos Sanchez > Assignee: Kaare Nilsen > Fix For: 1.0 > > > Test classes are not weaved with aspects from main folder > Maybe using the -aspectpath option pointing to target/classes? > http://www.eclipse.org/aspectj/doc/released/devguide/ajc-ref.html -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
