Menu

#1208 yahtml's outputDir property does not work

PMD-5.1.2
closed
PMD
4-Minor
Bug
5.1.1
2014-07-20
2014-06-07
No

If I run the command...

pmd -d MyClass.java -f yahtml -P outputDir=.\issues\pmd\ -R rulesets/java/empty.xml

...I get an error to the effect that the system cannot find the path =.\issues\pmd\MyClass.html -- as though it were including the = as part of the path. This is on Windows 7, if that makes any difference. I have tried with and without the beginning .\ and got the same result.

It also seems to output the usage/help text multiple times in addition to the actual error message whenever I run into an issue with my parameters such as this, and I'm not sure if that's normal or not. (Similarly, if I run just "pmd" and get the usage options it ends with an exception about not having specified dir, and I'm not sure if that's normal or not either -- probably ought to be its own bug report, although it hardly deserves one since it's inconsequential.)

Related

Discussion: How to use linkPrefix and linePrefix in the HTML renderer

Discussion

  • Anonymous

    Anonymous - 2014-06-09

    So, I have determined that this is due the the "=" being included in the property value and isn't specific to outputDir. If I set the linkPrefix on the html renderer, the links begin with "=" before the prefix.

     
  • Andreas Dangel

    Andreas Dangel - 2014-07-16
    • summary: yahtml's outputDir property does not work (Windows) --> yahtml's outputDir property does not work
    • status: open --> closed
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-Next
     
  • Andreas Dangel

    Andreas Dangel - 2014-07-16

    this will be fixed with the next release.

     

Log in to post a comment.