Trouble configuring Author Mapping XML file
I'm having trouble configuring the Authorship for a project.
I've made an authorship mapping xml file and edited the .properties file as described here
My xml map contains definitions for many authors across multiple files.
I generate a report, but in the report it only lists a single author, defaulted to source control.
I am using a script to run cpptestcli passing in the relevant ,properties file to the -setting option
I am unsure if there's a certain order things need to appear in the .properties file, or if I am missing something that would prevent it from giving me the desired authorship. The relevant properties that I have enabled are
scope.xmlmap.file=path\to\file\mapping.xml authors.shared.path=path\to\file\parasoft_analysis\mapping.xml scope.scontrol=true scope.xmlmap=true authors.ignore.case=true authors.mappings.location=shared
Any help is appreciated,
My mapping.xml file looks something like this, in case it's a problem with the mapping file itself.
<?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE authorship> <authorship> <file author="Author 1" path="directory/**" /> <file author="Author 1" path="**/subdirectory/**" /> <file author="Author 2" path="**/subdirectory/**" /> <file author="Author 3" path="directory/**" /> </authorship>0
Still having a lot of trouble with this.My reports are displaying a single author, being 'Unknown', and all violations are being attributed to them.0
Hi Sean, I'll send you information shortly0