You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2014/10/30 10:00:11 UTC

[jira] (MCHECKSTYLE-216) Source and resource directory's basedir is not stripped in report

     [ https://jira.codehaus.org/browse/MCHECKSTYLE-216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MCHECKSTYLE-216:
--------------------------------------

    Component/s: checkstyle:checkstyle

> Source and resource directory's basedir is not stripped in report
> -----------------------------------------------------------------
>
>                 Key: MCHECKSTYLE-216
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-216
>             Project: Maven Checkstyle Plugin
>          Issue Type: Improvement
>          Components: checkstyle:checkstyle
>    Affects Versions: 2.11
>            Reporter: Michael Osipov
>
> Basedirs are not stripped and full path is written to the report table, e.g. {{src/main/java/org...}} where it should read {{org/...}]. This consumes more space and more over, JXR links are broken.
> The PMD plugin solves this issue by
> {code}
> this.currentFilename =
>                 StringUtils.substring( currentFilename, fileInfo.getSourceDirectory().getAbsolutePath().length() + 1 );
> {code}
> as seen in [here|http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReportGenerator.java?view=markup#l105].



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)