From 9fd04f874c0a046736436b53b9a049a29b536165 Mon Sep 17 00:00:00 2001 From: Joseph Snyder Date: Wed, 30 Jul 2014 10:26:56 -0400 Subject: [PATCH] CTEST: Update Jacoco Coverage search paths Add a new additional entry to the FilePaths array when a "package" tag has been found. This path should consist of the package information found appended to the projects source directory. This change will allow code held in a /src/main/java/* directory off of the projects source directory to be found, unlike now which assumes a subdirectory contains the code. --- Source/CTest/cmParseJacocoCoverage.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/CTest/cmParseJacocoCoverage.cxx b/Source/CTest/cmParseJacocoCoverage.cxx index 4723dd398..f270adbbe 100644 --- a/Source/CTest/cmParseJacocoCoverage.cxx +++ b/Source/CTest/cmParseJacocoCoverage.cxx @@ -42,6 +42,9 @@ class cmParseJacocoCoverage::XMLParser: public cmXMLParser "/" + this->ModuleName + "/src/main/java/" + this->PackageName; this->FilePaths.push_back(FilePath); + FilePath = this->Coverage.SourceDir + + "/src/main/java/" + this->PackageName; + this->FilePaths.push_back(FilePath); } else if(name == "sourcefile") {