mirror of https://github.com/apache/maven.git
Percentage is a string with a percent symbol.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@226509 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3f9d1efdbf
commit
31bb2440b9
|
@ -17,6 +17,7 @@ package org.apache.maven.plugin.clover;
|
|||
*/
|
||||
|
||||
import com.cenqua.clover.cfg.Percentage;
|
||||
import com.cenqua.clover.cfg.Interval;
|
||||
import com.cenqua.clover.tasks.CloverPassTask;
|
||||
import org.apache.maven.plugin.MojoExecutionException;
|
||||
import org.apache.tools.ant.BuildException;
|
||||
|
@ -43,17 +44,17 @@ public class CloverCheckMojo
|
|||
protected String cloverDatabase;
|
||||
|
||||
/**
|
||||
* @parameter default-value="70"
|
||||
* @parameter default-value="70%"
|
||||
* @required
|
||||
*/
|
||||
protected float targetPercentage;
|
||||
protected String targetPercentage;
|
||||
|
||||
public void execute()
|
||||
throws MojoExecutionException
|
||||
{
|
||||
Project antProject = registerCloverAntTasks();
|
||||
|
||||
getLog().info( "Checking for coverage of " + targetPercentage + "%" );
|
||||
getLog().info( "Checking for coverage of " + targetPercentage);
|
||||
|
||||
CloverPassTask cloverPassTask = (CloverPassTask) antProject.createTask( "clover-check" );
|
||||
cloverPassTask.setInitString( this.cloverDatabase );
|
||||
|
|
Loading…
Reference in New Issue