[ http://jira.codehaus.org/browse/MPMD-50?page=all ]
Mike Perham closed MPMD-50. --------------------------- Assignee: Mike Perham Resolution: Fixed Your patch only sorted the files in CPD. I added it to PMD also. > Reports are different depending on the order of files retrieved from the > filesystem > ----------------------------------------------------------------------------------- > > Key: MPMD-50 > URL: http://jira.codehaus.org/browse/MPMD-50 > Project: Maven 2.x Pmd Plugin > Issue Type: Bug > Components: CPD > Affects Versions: 2.2 > Reporter: Daniel Kulp > Assigned To: Mike Perham > Fix For: 2.2 > > Attachments: pmd.patch > > > The getFilesToProcess call to get the list of files does not return a List in > any guaranteed order. One of the tests does expect it to be in sorted > order. However, on my machine, it's not sorted and the test fails. > Explicitly sorting the List not only allows the test to pass, but also makes > sure the same report would be generated on all the developer machines. It > should be much more reproduceable. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira