[ http://jira.codehaus.org/browse/MCLOVER-45?page=comments#action_70578 ] 
            
Vincent Massol commented on MCLOVER-45:
---------------------------------------

Hi Henrik,

What do you mean by "excluding files"? Do you mean excluding files from the 
clover reports? How are you doing this? If you're using the includes/excludes 
configuration properties from the clover plugin then they should have no impact 
on compilation or anything else. Their only impact is when running the Clover 
instrumentation:

{code}
            Set filesToInstrument = computeFilesToInstrument();
            if ( filesToInstrument.isEmpty() )
            {
                getLog().warn("No Clover instrumentation done as no matching 
sources files found");
            }
            else
            {
                instrumentSources( filesToInstrument );
            }
{code}

In the above code the includes/excludes are only used in 
computeFilesToInstrument().

Thanks.

> Excluded files should be added to compiled sources 
> ---------------------------------------------------
>
>                 Key: MCLOVER-45
>                 URL: http://jira.codehaus.org/browse/MCLOVER-45
>             Project: Maven 2.x Clover Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Henrik Mejlgaard
>
> When excluding files, these are not included in the compiled sources and 
> therefor gives an compile error as the excluded files cannot be found.
> My proposed fix would be to collect and copy the excluded source files to an 
> excluded_src folder in the target/clover directory, which then could be added 
> to the compiled sources list.

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

        

Reply via email to