• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

XSLT pmd.xml -> html

New Here ,
Oct 07, 2009 Oct 07, 2009

Copy link to clipboard

Copied

I needed to have this, but couldn't find anything that allowed me to do it quickly. I'm not using Maven.


After scouring the web for a general solution for PMD I came across an xslt file, which I modified to better represent FlexPMD (there are subtle differences). Ignore the fact that I'm executing the command-line jar from this build script. All that matters is that the pmd.xml file get generated.


  <target name="analyzeCode">
    <exec executable="java">
      <arg line="-Xmx256m" />
      <arg line="-jar /dev/tools/flexpmd/flex-pmd-command-line-1.0.Rc4.jar" />
      <arg line="-s src/" />
      <arg line="-o reports/pmd/" />
    </exec>


    <xslt in="reports/pmd/pmd.xml" style="/dev/tools/flexpmd/flex-pmd-report.xslt" out="reports/pmd/pmd.html" />
  </target>


This is just an example. Obviously the locations of the xslt and jar files will need to be different.


Thanks for this tool. These things are very welcome and incredibly appreciated. Take care.


-M

TOPICS
FlexPMD

Views

1.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 19, 2009 Nov 19, 2009

Copy link to clipboard

Copied

I totally missed this post !

Thanks for sharing this tool!

Xavier

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 27, 2010 Jan 27, 2010

Copy link to clipboard

Copied

LATEST

This was exactly what I was looking for.

Great ideia!

I have to thank you again for sharing this with us.

Bye

Helana Rodrigues.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines