You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "thierry lach (JIRA)" <ji...@codehaus.org> on 2005/04/20 22:43:01 UTC

[jira] Created: (MPJCOVERAGE-26) maven.jcoverage.instrumentation.excludes does not work

maven.jcoverage.instrumentation.excludes does not work
------------------------------------------------------

         Key: MPJCOVERAGE-26
         URL: http://jira.codehaus.org/browse/MPJCOVERAGE-26
     Project: maven-jcoverage-plugin
        Type: Bug
    Versions: 1.0.9    
    Reporter: thierry lach
 Assigned to: Emmanuel Venisse 


Setting the instrumentation excludes causes jcoverage to fail with classes not found exceptions.

To correct, change the following in plugin.jelly from

      <ant:copy todir="${maven.jcoverage.instrumentation}">
        <ant:fileset dir="${maven.build.dest}">
          <ant:exclude name="**/*.class" />
          <ant:exclude name="${maven.jcoverage.instrumentation.excludes}" />
        </ant:fileset>
      </ant:copy>

to

      <ant:copy todir="${maven.jcoverage.instrumentation}">
        <ant:fileset dir="${maven.build.dest}">
          <ant:exclude name="**/*.class" />
          <ant:include name="${maven.jcoverage.instrumentation.excludes}" />
        </ant:fileset>
      </ant:copy>



-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPJCOVERAGE-26) maven.jcoverage.instrumentation.excludes does not work

Posted by "thierry lach (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPJCOVERAGE-26?page=comments#action_37831 ]
     
thierry lach commented on MPJCOVERAGE-26:
-----------------------------------------

My suggested correction appears to be premature and does not work.

> maven.jcoverage.instrumentation.excludes does not work
> ------------------------------------------------------
>
>          Key: MPJCOVERAGE-26
>          URL: http://jira.codehaus.org/browse/MPJCOVERAGE-26
>      Project: maven-jcoverage-plugin
>         Type: Bug
>     Versions: 1.0.9
>     Reporter: thierry lach
>     Assignee: Emmanuel Venisse

>
>
> Setting the instrumentation excludes causes jcoverage to fail with classes not found exceptions.
> To correct, change the following in plugin.jelly from
>       <ant:copy todir="${maven.jcoverage.instrumentation}">
>         <ant:fileset dir="${maven.build.dest}">
>           <ant:exclude name="**/*.class" />
>           <ant:exclude name="${maven.jcoverage.instrumentation.excludes}" />
>         </ant:fileset>
>       </ant:copy>
> to
>       <ant:copy todir="${maven.jcoverage.instrumentation}">
>         <ant:fileset dir="${maven.build.dest}">
>           <ant:exclude name="**/*.class" />
>           <ant:include name="${maven.jcoverage.instrumentation.excludes}" />
>         </ant:fileset>
>       </ant:copy>

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPJCOVERAGE-26) maven.jcoverage.instrumentation.excludes does not work

Posted by "Eric Ballet-Baz (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPJCOVERAGE-26?page=comments#action_42117 ] 

Eric Ballet-Baz commented on MPJCOVERAGE-26:
--------------------------------------------

I think you have to split the copy operation into 2 steps :


      <ant:copy todir="${maven.jcoverage.instrumentation}">
        <ant:fileset dir="${maven.build.dest}">
          <ant:include name="${maven.jcoverage.instrumentation.excludes}" />
        </ant:fileset>
      </ant:copy>

      <ant:copy todir="${maven.jcoverage.instrumentation}">
        <ant:fileset dir="${maven.build.dest}">
          <ant:exclude name="**/*.class" />
          <ant:exclude name="${maven.jcoverage.instrumentation.excludes}" />
        </ant:fileset>
      </ant:copy>

Eric Ballet Baz

> maven.jcoverage.instrumentation.excludes does not work
> ------------------------------------------------------
>
>          Key: MPJCOVERAGE-26
>          URL: http://jira.codehaus.org/browse/MPJCOVERAGE-26
>      Project: maven-jcoverage-plugin
>         Type: Bug
>     Versions: 1.0.9
>     Reporter: thierry lach
>     Assignee: Emmanuel Venisse

>
>
> Setting the instrumentation excludes causes jcoverage to fail with classes not found exceptions.
> To correct, change the following in plugin.jelly from
>       <ant:copy todir="${maven.jcoverage.instrumentation}">
>         <ant:fileset dir="${maven.build.dest}">
>           <ant:exclude name="**/*.class" />
>           <ant:exclude name="${maven.jcoverage.instrumentation.excludes}" />
>         </ant:fileset>
>       </ant:copy>
> to
>       <ant:copy todir="${maven.jcoverage.instrumentation}">
>         <ant:fileset dir="${maven.build.dest}">
>           <ant:exclude name="**/*.class" />
>           <ant:include name="${maven.jcoverage.instrumentation.excludes}" />
>         </ant:fileset>
>       </ant:copy>

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPJCOVERAGE-26) maven.jcoverage.instrumentation.excludes does not work

Posted by "Eric Ballet-Baz (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPJCOVERAGE-26?page=comments#action_45558 ] 

Eric Ballet-Baz commented on MPJCOVERAGE-26:
--------------------------------------------

In fact, this is more correct, since it allows multiple patterns in maven.jcoverage.instrumentation.excludes

<ant:copy todir="${maven.jcoverage.instrumentation}">
<ant:fileset dir="${maven.build.dest}"
    includes="${maven.jcoverage.instrumentation.excludes}">
</ant:fileset>
</ant:copy>

<ant:copy todir="${maven.jcoverage.instrumentation}">
<ant:fileset dir="${maven.build.dest}"
    excludes="${maven.jcoverage.instrumentation.excludes}">
    <ant:exclude name="**/*.class" />
</ant:fileset>
</ant:copy>

Is there some plan to include this in the next release ?

Thanks
Eric Ballet-Baz

> maven.jcoverage.instrumentation.excludes does not work
> ------------------------------------------------------
>
>          Key: MPJCOVERAGE-26
>          URL: http://jira.codehaus.org/browse/MPJCOVERAGE-26
>      Project: maven-jcoverage-plugin
>         Type: Bug
>     Versions: 1.0.9
>     Reporter: thierry lach
>     Assignee: Emmanuel Venisse

>
>
> Setting the instrumentation excludes causes jcoverage to fail with classes not found exceptions.
> To correct, change the following in plugin.jelly from
>       <ant:copy todir="${maven.jcoverage.instrumentation}">
>         <ant:fileset dir="${maven.build.dest}">
>           <ant:exclude name="**/*.class" />
>           <ant:exclude name="${maven.jcoverage.instrumentation.excludes}" />
>         </ant:fileset>
>       </ant:copy>
> to
>       <ant:copy todir="${maven.jcoverage.instrumentation}">
>         <ant:fileset dir="${maven.build.dest}">
>           <ant:exclude name="**/*.class" />
>           <ant:include name="${maven.jcoverage.instrumentation.excludes}" />
>         </ant:fileset>
>       </ant:copy>

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org