Create checkstyle reports in specifiled folder.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Create checkstyle reports in specifiled folder.

Chaminda Fernando

I am using  followign ant task to generate check-style report.Even though
 check-style.xml and HTML  file generate with in correct folder
 (checkstyle.report) some of other files  like files folder,stylesheet.css,
 overview-frame.html, index.html are genearte under the root folder.

 How can  i configute  check-style ant target to send above files  to
 specified folder .

 target name="checkstyle"
 description="Generates a report of code convention violations.">
 <checkstyle config="${CheckStyle.home}/sun_checks.xml"
 failureProperty="checkstyle.failure"
 failOnViolation="false">
 <formatter type="xml"
 tofile="${checkstyle.report}/checkstyle_report.xml"/>
 <fileset dir="${websource}" includes="**/*.java"/>
 </checkstyle>
 <xslt in="${checkstyle.report}/checkstyle_report.xml"
 out="${checkstyle.report}/checkstyle_report.html"
 style="${CheckStyle.home}/contrib/checkstyle-simple.xsl"/>


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Checkstyle-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user
Reply | Threaded
Open this post in threaded view
|

Re: Create checkstyle reports in specifiled folder.

Oliver Burn
In your example, the variable ${checkstyle.report} controls what directory files are stored in.

You will need to set this variable in your ANT script.

On Tue, Apr 13, 2010 at 01:01, Chaminda Fernando <[hidden email]> wrote:

I am using  followign ant task to generate check-style report.Even though
 check-style.xml and HTML  file generate with in correct folder
 (checkstyle.report) some of other files  like files folder,stylesheet.css,
 overview-frame.html, index.html are genearte under the root folder.

 How can  i configute  check-style ant target to send above files  to
 specified folder .

 target name="checkstyle"
 description="Generates a report of code convention violations.">
 <checkstyle config="${CheckStyle.home}/sun_checks.xml"
 failureProperty="checkstyle.failure"
 failOnViolation="false">
 <formatter type="xml"
 tofile="${checkstyle.report}/checkstyle_report.xml"/>
 <fileset dir="${websource}" includes="**/*.java"/>
 </checkstyle>
 <xslt in="${checkstyle.report}/checkstyle_report.xml"
 out="${checkstyle.report}/checkstyle_report.html"
 style="${CheckStyle.home}/contrib/checkstyle-simple.xsl"/>


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Checkstyle-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Checkstyle-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user