Here's what I've done:
1) Added the below to toolhome.properties.local
# CPD is part of the PMD project.
cpd.home=${pmd.home}
2) To fix a transform error:
set ANT_OPTS=-Dfile.encoding=UTF-8
However, I still can't get the created html to correctly reference the
marked up java source (created by java2html14). The PMD html does
correctly reference the source.
I think the problem is that in this xsl fragment from cpd.xsl is
borked:
<xsl:template match="file">
<xsl:variable name="path" select="@path"/>
<xsl:variable name="line" select="@line"/>
<xsl:variable name="translated-path" select="translate(@path, '\',
'/')"/>
<xsl:variable name="linkpath" select="substring-after($translated-
path, $source-root)"/>
<tr>
<td class="file">Starting at <a href="{$context-root}/
{$linkpath}.html#{$line}">line <xsl:value-of select="@line"/></a> of
<xsl:value-of select="$linkpath"/></td>
</tr>
</xsl:template>
the value in 'linkpath' is just plain wrong- the substring-after isn't
correctly returning a local path, it's just set to an empty string.
Anyone have similar problems?
Paul