[ http://jira.codehaus.org/browse/MPMD-55?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xavier Le Vourch updated MPMD-55: --------------------------------- Attachment: MPMD-55-FIX.TXT The patch has been committed but the tests fail. The reason is that there is a side effect in the new testWriteNonHtml() test when creating TokenEntry objects. My patch fixes that by calling go() on the CPD object to reset the CPD state. With it, all tests pass whether using PMD 3.9 or PMD 4.1 once MPMD-59 is applied. > The Xml pmd file isn't encode to UTF8 charset counter the charset declaration > in the file header > ------------------------------------------------------------------------------------------------ > > Key: MPMD-55 > URL: http://jira.codehaus.org/browse/MPMD-55 > Project: Maven 2.x PMD Plugin > Issue Type: Bug > Reporter: pkernevez > Assignee: Daniel Kulp > Fix For: 2.3 > > Attachments: MPMD-55-FIX.TXT, PMD-UTF8-Encode.patch > > > The Xml file (target/pmd.xml) declare an UTF-8 encoding: "<?xml version="1.0" > encoding="UTF-8"?>" but use the FileWriter API that encode caracter with the > default charset of the platform. > Non ACSII caracter couldn't be read and xml file couldn't be parsed with Xml > Parser due to this error. > The patch contains the testcode and the correction -- 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