From e4b8273cc6a18cb960999dce8d1d3e4e91e71da2 Mon Sep 17 00:00:00 2001 From: Pavel Stepanov Date: Tue, 19 Mar 2013 11:03:24 -0300 Subject: [PATCH] 8009969: CodeCoverage should use template Reviewed-by: jlaskey, sundar --- nashorn/make/build.xml | 2 +- nashorn/make/code_coverage.xml | 60 +++++++++++++++++++++++++++++---- nashorn/make/project.properties | 4 ++- 3 files changed, 57 insertions(+), 9 deletions(-) diff --git a/nashorn/make/build.xml b/nashorn/make/build.xml index e2d8f0ccb31..945ccaa27f1 100644 --- a/nashorn/make/build.xml +++ b/nashorn/make/build.xml @@ -124,7 +124,7 @@ - + diff --git a/nashorn/make/code_coverage.xml b/nashorn/make/code_coverage.xml index 41d85ff3ef1..33980bdfdf6 100644 --- a/nashorn/make/code_coverage.xml +++ b/nashorn/make/code_coverage.xml @@ -36,7 +36,12 @@ + + + + + @@ -51,25 +56,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + - + + + + - + @@ -81,12 +127,12 @@ - + - + diff --git a/nashorn/make/project.properties b/nashorn/make/project.properties index c4d0b943cd7..60444de766b 100644 --- a/nashorn/make/project.properties +++ b/nashorn/make/project.properties @@ -235,10 +235,12 @@ jcov=dynamic #naming of CC results #NB directory specified in the cc.dir will be cleaned up!!! cc.dir=${basedir}/../Codecoverage_Nashorn -cc.result.file.name=cc_nashorn.xml +cc.result.file.name=CC_${jcov}_nashorn.xml #dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.properties jcov2.lib.dir=${basedir}/../jcov2/lib jcov.jar=${jcov2.lib.dir}/jcov.jar cc.include=jdk\.nashorn\.* cc.exclude=jdk\.nashorn\.internal\.scripts\.* +cc.dynamic.genereate.template=true +cc.template=${cc.dir}/CC_template.xml cc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name}