Java Mailing List Archive

Apache Ant Archive

» Ant Users List
» Ant Developers List
AW: checkstyle-ant

AW: checkstyle-ant

2007-07-30       - By Jan.Materne@(protected)
Reply:     1     2  

<checkstyle> generates a xml based report.

This report should be converted to HTML by the <style> task via XSLT
The path to the xsl as you have defined must be "checkstyle.xsl" directly under
your projects root directory (if you havent specified the <project basedir>).

I think you are missing this file. This xsl is part of the CS-distro. Have a
look into the zip and extract the file to your project (e.g. "src/etc


>-----Urspr?ngliche Nachricht-----
>Von: Sameer Borwankar [mailto:sameerhari@(protected)]
>Gesendet: Montag, 30. Juli 2007 11:21
>An: Ant Users List
>Betreff: checkstyle-ant
>Hi all,
>I am trying to generate a report using checkstyle plugin with IBM RAD.
>I have written an ant script for the same as follows:
>    <target name="checkstyle"
>        description="Generates a report of code convention
>  <checkstyle config="docs/sun_checks.xml"
>              failureProperty="checkstyle.failure"
>              failOnViolation="false">
>    <formatter type="xml" tofile="checkstyle_report.xml"/>
>    <fileset dir="src" includes="**/*.java"/>
>  </checkstyle>
>  <style in="checkstyle_report.xml"
>out="checkstyle_report.html" style="checkstyle.xsl"/>
>When i try to run this ant script the error which m getting is
>"system cannot find the file checkstyle.xsl" so please help me
>regarding the same...
>Building a website is a piece of cake. Yahoo! Small Business
>gives you all the tools to get online.

To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 - Jax Systems, LLC, U.S.A.