Package org.scoverage.plugin
Class SCoverageForkedLifecycleConfigurator
java.lang.Object
org.scoverage.plugin.SCoverageForkedLifecycleConfigurator
Configures project and dependent modules in multi-module project when entering forked
In default life cycle modules use:
In forked
scoverage
life cycle and restores original configuration after leaving it.
In default life cycle modules use:
-
${project.build.directory}/classes
asproject.outputDirectory
property value, -
${project.build.directory}/${project.finalName}.jar
asproject.artifact.file
property value.
In forked
scoverage
life cycle modules use:
-
${project.build.directory}/scoverage-classes
asproject.outputDirectory
property value, -
${project.build.directory}/scoverage-${project.finalName}.jar
asproject.artifact.file
property value.
- Author:
- Grzegorz Slowikowski
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
afterForkedLifecycleEnter
(MavenProject project, List<MavenProject> reactorProjects, Map<String, String> additionalProjectPropertiesMap) Configures project and dependent modules in multi-module project when entering forkedscoverage
life cycle.static void
afterForkedLifecycleExit
(MavenProject project, List<MavenProject> reactorProjects) Restores original configuration after leaving forkedscoverage
life cycle.
-
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 forkedscoverage
life cycle.- Parameters:
project
- Maven project inscoverage
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 forkedscoverage
life cycle.
project
is a project in default life cycle,project.getExecutionProject()
is a project in just finished forkedscoverage
life cycle.- Parameters:
project
- Maven project in default life cycle.reactorProjects
- all reactor Maven projects.
-