From c231e2d1f9ab0163041e02522c33859168ff52e4 Mon Sep 17 00:00:00 2001 From: vmassol Date: Fri, 16 Jul 2004 10:59:37 +0000 Subject: [PATCH] When executing clover:on and clover:off, modify the maven.build.dest property value in the Root context of all plugins so that the value change is available in all Maven plugins. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115832 13f79535-47bb-0310-9956-ffa450edef68 --- clover/plugin.jelly | 14 ++++---------- clover/xdocs/changes.xml | 5 +++++ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/clover/plugin.jelly b/clover/plugin.jelly index be9bdac4..007f8dab 100644 --- a/clover/plugin.jelly +++ b/clover/plugin.jelly @@ -158,12 +158,8 @@ Now using primary build.compiler : ${build.compiler} - - ${pom.getPluginContext('maven-java-plugin').setVariable('maven.build.dest',tmp)} - - ${pom.getPluginContext('maven-test-plugin').setVariable('maven.build.dest',tmp)} + + ${context.getParent().setVariable('maven.build.dest',tmp)} @@ -175,10 +171,8 @@ --> - ${pom.getPluginContext('maven-test-plugin').setVariable('maven.build.dest',mavenBuildDestTestOld)} - ${pom.getPluginContext('maven-java-plugin').setVariable('maven.build.dest',mavenBuildDestJavaOld)} - - ${pom.getContext().removeVariable('build.compiler')} + ${context.getParent().setVariable('maven.build.dest',mavenBuildDestTestOld)} + ${context.removeVariable('build.compiler')} diff --git a/clover/xdocs/changes.xml b/clover/xdocs/changes.xml index c7251d24..81e18d12 100644 --- a/clover/xdocs/changes.xml +++ b/clover/xdocs/changes.xml @@ -26,6 +26,11 @@ + + When executing clover:on and clover:off, modify + the maven.build.dest property value in the Root context of + all plugins so that the value change is available in all Maven plugins. + Prevented the clover:on goal from failing when there are no unit tests sources available.