From b96fb1649c62a0705df85143fbe3016451144f60 Mon Sep 17 00:00:00 2001 From: evenisse Date: Fri, 28 May 2004 10:27:27 +0000 Subject: [PATCH] MPJCOVERAGE-8. Fixed report generation fails when no java source present. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115416 13f79535-47bb-0310-9956-ffa450edef68 --- jcoverage/plugin.jelly | 113 +++++++++++++++++++----------------- jcoverage/xdocs/changes.xml | 1 + 2 files changed, 61 insertions(+), 53 deletions(-) diff --git a/jcoverage/plugin.jelly b/jcoverage/plugin.jelly index 91716c76..cf0cbcce 100644 --- a/jcoverage/plugin.jelly +++ b/jcoverage/plugin.jelly @@ -159,60 +159,67 @@ description="Generate HTML test coverage reports with JCoverage" prereqs="jcoverage:on,test:test"> - - - - ${sourceDir} - - - Copying ${size(sourceDirList)} source directories into one for jcoverage - - - - - - - - - - - - - - - - + + + - jcoverage reports have been generated. - The HTML report is ${maven.build.coverage.dir}/index.html - - - - - - - - - - - - - - - ${pom.getPluginContext('maven-test-plugin').setVariable('maven.junit.fork', oldfork)} - - ${pom.getPluginContext('maven-test-plugin').setVariable('maven.build.dest', oldBuildDest)} - - - ${ex} - - + + ${sourceDir} + + + Copying ${size(sourceDirList)} source directories into one for jcoverage + + + + + + + + + + + + + + + + + + jcoverage reports have been generated. + The HTML report is ${maven.build.coverage.dir}/index.html + + + + + + + + + + + + + + + ${pom.getPluginContext('maven-test-plugin').setVariable('maven.junit.fork', oldfork)} + + ${pom.getPluginContext('maven-test-plugin').setVariable('maven.build.dest', oldBuildDest)} + + + ${ex} + + + + + No tests to run JCoverage on. + + diff --git a/jcoverage/xdocs/changes.xml b/jcoverage/xdocs/changes.xml index 27bcc75e..a9aa4384 100644 --- a/jcoverage/xdocs/changes.xml +++ b/jcoverage/xdocs/changes.xml @@ -25,6 +25,7 @@ + Fixed report generation fails when no java source present. Handle multiple source directories correctly Copy all of maven.build.dest, excluding the class files, into the instrumentation directory, as some people hook into the resources copying themselves without adding them to the POM