Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
move cobertura plugin to server pom
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Sep 20, 2012
1 parent 59d9a84 commit 9a3d6df
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 32 deletions.
35 changes: 35 additions & 0 deletions pom.xml
Expand Up @@ -20,6 +20,7 @@

<properties>
<cobertura.total-line-rate>50</cobertura.total-line-rate>
<cobertura.total-branch-rate>50</cobertura.total-branch-rate>
<cobertura.halt.failure>false</cobertura.halt.failure>
<delombok.dir>${project.build.directory}/delombok/org/zanata</delombok.dir>
<enunciate.version>1.24</enunciate.version>
Expand Down Expand Up @@ -293,6 +294,40 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.4</version>
<configuration>
<instrumentation>
<excludes>
<!--TODO move all gwt wrapper class under specific package. i.e boundary-->
<!--<exclude>**/boundary/**/*</exclude>-->
<exclude>**/test/**/*</exclude>
<!--<exclude>**/supersource/**/*</exclude>-->
<exclude>**/client/**/*View</exclude>
<exclude>**/client/Application*</exclude>
<exclude>**/client/auth/**</exclude>
<exclude>**/client/events/**</exclude>
<exclude>**/client/gin/**</exclude>
<exclude>**/client/ui/**</exclude>
<exclude>**/client/view/**</exclude>
<exclude>**/*OkapiUtil*</exclude>
<!--below are some trivial classes(java bean) at the moment-->
<exclude>**/shared/auth/**</exclude>
<exclude>**/shared/model/**</exclude>
<exclude>**/*Exception*</exclude>
</excludes>
</instrumentation>
<check>
<totalBranchRate>${cobertura.total-branch-rate}</totalBranchRate>
<totalLineRate>${cobertura.total-line-rate}</totalLineRate>
<haltOnFailure>${cobertura.halt.failure}</haltOnFailure>
</check>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
Expand Down
33 changes: 1 addition & 32 deletions zanata-war/pom.xml
Expand Up @@ -219,38 +219,7 @@
</suiteXmlFiles>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.4</version>
<configuration>
<instrumentation>
<excludes>
<!--TODO move all gwt wrapper class under specific package. i.e boundary-->
<!--<exclude>**/boundary/**/*</exclude>-->
<exclude>**/test/**/*</exclude>
<!--<exclude>**/supersource/**/*</exclude>-->
<exclude>**/client/**/*View</exclude>
<exclude>**/client/Application*</exclude>
<exclude>**/client/auth/**</exclude>
<exclude>**/client/events/**</exclude>
<exclude>**/client/gin/**</exclude>
<exclude>**/client/ui/**</exclude>
<exclude>**/client/view/**</exclude>
<!--below are some trivial classes(java bean) at the moment-->
<exclude>**/shared/auth/**</exclude>
<exclude>**/shared/model/**</exclude>
<exclude>**/*Exception*</exclude>
</excludes>
</instrumentation>
<check>
<totalBranchRate>${cobertura.total-branch-rate}</totalBranchRate>
<totalLineRate>${cobertura.total-line-rate}</totalLineRate>
<haltOnFailure>${cobertura.halt.failure}</haltOnFailure>
</check>
</configuration>
</plugin>


<!-- Configure Failsafe to run in integration-test phase -->
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
Expand Down

0 comments on commit 9a3d6df

Please sign in to comment.