maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stephane bouchet (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MPASPECTJ-16) aspectj:compile also compiles java files in CVS/Base
Date Mon, 27 Mar 2006 12:22:45 GMT
    [ http://jira.codehaus.org/browse/MPASPECTJ-16?page=comments#action_62049 ] 

stephane bouchet commented on MPASPECTJ-16:
-------------------------------------------

Hi, 

I am also using CVS with aspectj and i never had this issue. ( i looked in my workspace and
i don't have any CVS/Base folder ... )

It seems this directory is used by cvs with special checkouts commands, see : 
http://www.cvsnt.org/pipermail/cvsnt/2005-January/016818.html


> aspectj:compile also compiles java files in CVS/Base
> ----------------------------------------------------
>
>          Key: MPASPECTJ-16
>          URL: http://jira.codehaus.org/browse/MPASPECTJ-16
>      Project: maven-aspectj-plugin
>         Type: Bug

>     Versions: 3.2
>     Reporter: Brian Jacobsen
>     Priority: Minor
>      Fix For: 4.0

>
>
> When using the aspect:compile goal we receive a lot of errors, because the jelly plugin
also tries to compile java sources in CVC/Base directory.
> ---------------------------------------------------
> xxx\CVS\Base\Yyy.java:82 error The constructor ZzzException(String, NamingException)
is undefined
> throw new ZzzException("test", e);
>       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> xxx\CVS\Base\zzzException.java:6 error The type zzzException is already defined
> public class ZzzException extends Exception {
>              ^^^^^^^^^^^^^^^^
> ---------------------------------------------------
> Suggested fix:
> Use ant:srcdir instead of ant:sourceroots or make it possible to specify the preferred
behaviour with a property.
> <!--
> <ant:sourceroots>
>  <ant:path refid="${sourcePathRefid}"/>
>  <j:if test="${aspectSourcesPresent and weaveAspectSources}">
>   <ant:pathelement location="${pom.build.aspectSourceDirectory}"/>
>  </j:if>
> </ant:sourceroots>
> -->
> <ant:srcdir>
>  <ant:path refid="${sourcePathRefid}"/>
>  <j:if test="${aspectSourcesPresent and weaveAspectSources}">
>   <ant:pathelement location="${pom.build.aspectSourceDirectory}"/>
>  </j:if>
> </ant:srcdir>
> Or perhaps it is possible to bypass the problem in another way?
> regards
> Brian

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


Mime
View raw message