>
> Hi Maven Emma plugin users and Dev team,
>
> I need help in configuring a filter file which is a text file and it's
> contains look like this:
>
> -com.pkg.mytest.*
> -com.pkg.mytestFile
>
> and so on... This is a big file.
>
>
> In my pom.xml, I tried to specify filter file: /scratch/user/myFilters.txt
> whose contents are as mentioned above
>
> * <filters><filter>/scratch/user/myFilters.txt</filter></filters> *
> *<!--<filterFile>/scratch/user/myFilters.txt</filterFile>-->*
>
> Both the above don't work, meaning I don't get any error but none of the
> classes get instrumented. Can you please help me on this? Is it possible to
> specify a filter file with emma maven plugin, if yes, please let me know
> the correct syntax.
>
> I tried to search a lot on internet and userguide but no clue :|
>
> <plugin>
>             <groupId>org.codehaus.mojo</groupId>
>             <artifactId>emma-maven-plugin</artifactId>
>             <inherited>false</inherited>
>             <executions>
>                 <execution>
>                     <phase>process-classes</phase>
>                     <goals>
>                         <goal>instrument</goal>
>                     </goals>
>                 </execution>
>             </executions>
>             <configuration>
>
> <metadataFile>${project.build.directory}/emma/coverage.em</metadataFile>
>
> * <filters><filter>/scratch/user/myFilters.txt</filter></filters> *
> *<!--<filterFile>/scratch/user/myFilters.txt</filterFile>-->*
>
>
> <outputDirectory>${project.build.directory}/emma</outputDirectory>
>                 <verbose>true</verbose>
>             </configuration>
>         </plugin>
>
>
> Regards,
> Vineet
>

Reply via email to