org.sonar.plugins.jacoco
Class JaCoCoItSensor
java.lang.Object
org.sonar.plugins.jacoco.JaCoCoItSensor
- All Implemented Interfaces:
- CheckProject, Sensor, BatchComponent, BatchExtension, Extension
public class JaCoCoItSensor
- extends Object
- implements Sensor
Note that this class can't extend AbstractCoverageExtension
, because in this case this extension will be
disabled under Sonar 2.3, if JaCoCo is not defined as the default code coverage plugin.
JaCoCoItSensor
public JaCoCoItSensor(JacocoConfiguration configuration)
shouldExecuteOnProject
public boolean shouldExecuteOnProject(Project project)
- Specified by:
shouldExecuteOnProject
in interface CheckProject
analyse
public void analyse(Project project,
SensorContext context)
- Description copied from interface:
Sensor
- The method that is going to be run when the sensor is called
- Specified by:
analyse
in interface Sensor
- Parameters:
project
- the project the sensor runs oncontext
- the context
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 SonarSource. All Rights Reserved.