You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Sameer Borwankar <sa...@yahoo.com> on 2007/07/30 11:20:34 UTC

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 violations.">

  <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"/>
</target>


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...

Regards,
Sameer


       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting 

Re: checkstyle-ant

Posted by Prashant Reddy <pr...@pramati.com>.
Does the file checkstyle.xsl exist in the directory where your build.xml
is ? 

-Prashant
On Mon, 2007-07-30 at 02:20 -0700, Sameer Borwankar wrote:
> 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 violations.">
> 
>   <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"/>
> </target>
> 
> 
> 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...
> 
> Regards,
> Sameer
> 
> 
>        
> ____________________________________________________________________________________
> Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
> http://smallbusiness.yahoo.com/webhosting 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org