Class SCoverageForkedLifecycleConfigurator

java.lang.Object
org.scoverage.plugin.SCoverageForkedLifecycleConfigurator

public class SCoverageForkedLifecycleConfigurator extends Object
Configures project and dependent modules in multi-module project when entering forked scoverage life cycle and restores original configuration after leaving it.
In default life cycle modules use:
  • ${project.build.directory}/classes as project.outputDirectory property value,
  • ${project.build.directory}/${project.finalName}.jar as project.artifact.file property value.

In forked scoverage life cycle modules use:
  • ${project.build.directory}/scoverage-classes as project.outputDirectory property value,
  • ${project.build.directory}/scoverage-${project.finalName}.jar as project.artifact.file property value.
Author:
Grzegorz Slowikowski
  • Constructor Details

    • SCoverageForkedLifecycleConfigurator

      public SCoverageForkedLifecycleConfigurator()
  • Method Details

    • afterForkedLifecycleEnter

      public static void afterForkedLifecycleEnter(MavenProject project, List<MavenProject> reactorProjects, Map<String,String> additionalProjectPropertiesMap)
      Configures project and dependent modules in multi-module project when entering forked scoverage life cycle.
      Parameters:
      project - Maven project in scoverage forked life cycle.
      reactorProjects - all reactor Maven projects.
      additionalProjectPropertiesMap - additional project properties to set.
    • afterForkedLifecycleExit

      public static void afterForkedLifecycleExit(MavenProject project, List<MavenProject> reactorProjects)
      Restores original configuration after leaving forked scoverage life cycle.
      project is a project in default life cycle, project.getExecutionProject() is a project in just finished forked scoverage life cycle.
      Parameters:
      project - Maven project in default life cycle.
      reactorProjects - all reactor Maven projects.