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.
This commit is contained in:
Joseph Snyder 2014-07-30 10:26:56 -04:00
parent 8d1306cd1b
commit 9fd04f874c
1 changed files with 3 additions and 0 deletions

View File

@ -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")
{