• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

checkstyle destination directory

 
Hooplehead
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I've got checkstyle integrated into by build, but for whatever reason it is placing the output into ./ instead of the specified file. My attempts to find an answer on "the google" have not succeeded.



The out parameter will not let me specificy a directory, which would be more correct as the style generates multiple files.

For the moment, I'll just get the build to move the files around...but this is not particularly elegant or correct and I would really like to clean it up.

Thanks for any ideas.

Stu
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm no expert on this, but the following works for me. Not sure about the "out" parameter you mention - it uses "toFile".


[ November 05, 2006: Message edited by: Ulf Dittmer ]
 
Stu Thompson
Hooplehead
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ulf,

Thanks for responding. I was beginning to thing this would sort of fall off the radar.

Actually, we both have the out attribute on the style element correct. The toFile attribute, which belongs to the formatter element is also correct. For the sake of simplicity, I had only detailed my style element. Here is the entire task:



One seemingly significant difference is that I was applying checkstyle-frames-error.xsl. But switching to what you have used, checkstyle-frames.xsl had no positive effect.

A recent problem I had with checkstyle occured when I upgraded to the most recent xerces/xalan jars...a dependancey elsewhere forced this. After the jar update, there was a problem with the xmlns:redirect namespace in the XSL. I had change it from a class to a URL for it to work. I can't think that would cause it, but stranger things have happened in my days.

Further thoughts appreciated,

Stu
[ November 06, 2006: Message edited by: Stu Thompson ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic