# HG changeset patch
# User jlaskey
# Date 1363701804 10800
# Node ID fb3208bbd5dc67141c19b29581d1ce9d49b689e2
# Parent 8d20ffabe47e9365f5e569c23b5a77b75f00ed8b
8009969: CodeCoverage should use template
Reviewed-by: jlaskey, sundar
Contributed-by: pavel.stepanov@oracle.com
diff -r 8d20ffabe47e -r fb3208bbd5dc nashorn/make/build.xml
--- a/nashorn/make/build.xml Mon Mar 18 21:03:11 2013 +0530
+++ b/nashorn/make/build.xml Tue Mar 19 11:03:24 2013 -0300
@@ -124,7 +124,7 @@
-
+
diff -r 8d20ffabe47e -r fb3208bbd5dc nashorn/make/code_coverage.xml
--- a/nashorn/make/code_coverage.xml Mon Mar 18 21:03:11 2013 +0530
+++ b/nashorn/make/code_coverage.xml Tue Mar 19 11:03:24 2013 -0300
@@ -36,7 +36,12 @@
+
+
+
+
+
@@ -51,25 +56,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
-
+
+
+
+
-
+
@@ -81,12 +127,12 @@
-
+
-
+
diff -r 8d20ffabe47e -r fb3208bbd5dc nashorn/make/project.properties
--- a/nashorn/make/project.properties Mon Mar 18 21:03:11 2013 +0530
+++ b/nashorn/make/project.properties Tue Mar 19 11:03:24 2013 -0300
@@ -235,10 +235,12 @@
#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}