[ 
http://jira.codehaus.org/browse/MASPECTJ-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=255793#action_255793
 ] 

Robert Scholte commented on MASPECTJ-73:
----------------------------------------

I've tried the attachment, watched the logs and the files are definitely 
excluded by the aspectj-m-p (with 1.4-SNAPSHOT). 
Here are my results:
{noformat}
FooAspect
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.828 sec
Running FooJTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.047 sec <<< 
FAILURE!
{noformat}
But why do you expect the {{FooJTest.undeclaredCheckedExceotionIsThrown()}} to 
fail?
To me {{FooImplJ.foo()}} just looks like an empty method, no aspects, so sure 
it will succeed.

> Excludes option does not work for test-compile phase
> ----------------------------------------------------
>
>                 Key: MASPECTJ-73
>                 URL: http://jira.codehaus.org/browse/MASPECTJ-73
>             Project: Mojo AspectJ Plugin
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: Vitaliy Semochkin
>         Attachments: hello-aspectj.zip
>
>
> Excludes option does not work for test-compile phase.
> Following configuration excludes aspect FooAspect from compile phase but 
> during test-compile the aspect is compiled.
>           <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>aspectj-maven-plugin</artifactId>
>                 <version>1.1</version>
>                 <configuration>
>                     <source>1.6</source>
>                     <target>1.6</target>
>                     <excludes>
>                         <exclude>**/FooAspect.java</exclude>
>                     </excludes>
>                 </configuration>
>                 <executions>
>                     <execution>
>                         <goals>
>                             <goal>compile</goal>
>                             <goal>test-compile</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> sample maven project demonstrating the bug is attached.

-- 
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

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to