You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dominik Dahlem <Do...@cs.tcd.ie> on 2003/07/23 15:48:25 UTC

checkstyle classpath issue

Hi all,

I thought to share a solution to a minor problem I had with the
checkstyle
report: I'm using the checkstyle plugin 2.0 and the report being
generated
pointed to many "Unable to get class information" errors.
I figured out that the checkstyle task supports classpaths and added the
dependency classpath of the project and the maven.build.dest property to
it.
As a result, the class information can be resolved and the report is not
overloaded with these error messages.


<ant:checkstyle
  config="${checkstyleProperties}"
  failOnViolation="${maven.checkstyle.fail.on.violation}">

  <classpath>
    <pathelement location="${maven.build.dest}" />
    <path refid="maven.dependency.classpath" />
  </classpath>

...
</ant:checkstyle>

Dominik

+---------------------------------------------------------------------+
   _/_/_/_/_/  _/_/_/  __/_/_/_/  Dominik Dahlem
      _/     _/    _/  _/     _/  M.Sc. student, Computer Science
     _/     _/        _/     _/   Trinity College Dublin
    _/     _/        _/     _/    tel  : +353 (0)1 608
   _/     _/    _/  _/     _/     email: Dominik.Dahlem@cs.tcd.ie
  _/      _/_/_/  __/_/_/_/       www  : http://www.cs.tcd.ie/~dahlemd
+---------------------------------------------------------------------+



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org