You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Hoover, William " <wh...@nemours.org> on 2008/01/31 20:34:53 UTC
[maven-checkstyle-plugin] Including test classes in report?
Does anyone know a way to include test classes (src/test/java) in the checkstyle report? I am only recieving results for packaged classes (src/main/java)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [maven-checkstyle-plugin] Including test classes in report?
Posted by Wayne Fay <wa...@gmail.com>.
>From the docs:
includeTestSourceDirectory Include or not the test source directory to
be used for Checkstyle
Type: boolean
Since: 2.2
And you're using version 2.1.
Wayne
On 1/31/08, Hoover, William <wh...@nemours.org> wrote:
> Thanks for the hint!
>
> I tried the following, but it still does not work. Any ideas why?
>
> <reporting>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <version>2.1</version>
> <configuration>
> <configLocation>nemours-checkstyle.xml</configLocation>
> <includeTestSourceDirectory>true</includeTestSourceDirectory>
> </configuration>
> </plugin>
> </plugins>
> </reporting>
>
> -----Original Message-----
> From: Nick Stolwijk [mailto:nicklist@planet.nl]
> Sent: Thursday, January 31, 2008 2:54 PM
> To: Maven Users List
> Subject: Re: [maven-checkstyle-plugin] Including test classes in report?
>
>
> I see you can only give one sourcedirectory, but you can add the
> parameter "includeTestSourceDirectory" [1].
>
> Hth,
>
> Nick Stolwijk
>
> [1]
> http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html#includeTestSourceDirectory
>
> Hoover, William wrote:
> > Does anyone know a way to include test classes (src/test/java) in the checkstyle report? I am only recieving results for packaged classes (src/main/java)
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: [maven-checkstyle-plugin] Including test classes in report?
Posted by "Hoover, William " <wh...@nemours.org>.
Thanks for the hint!
I tried the following, but it still does not work. Any ideas why?
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.1</version>
<configuration>
<configLocation>nemours-checkstyle.xml</configLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
</configuration>
</plugin>
</plugins>
</reporting>
-----Original Message-----
From: Nick Stolwijk [mailto:nicklist@planet.nl]
Sent: Thursday, January 31, 2008 2:54 PM
To: Maven Users List
Subject: Re: [maven-checkstyle-plugin] Including test classes in report?
I see you can only give one sourcedirectory, but you can add the
parameter "includeTestSourceDirectory" [1].
Hth,
Nick Stolwijk
[1]
http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html#includeTestSourceDirectory
Hoover, William wrote:
> Does anyone know a way to include test classes (src/test/java) in the checkstyle report? I am only recieving results for packaged classes (src/main/java)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [maven-checkstyle-plugin] Including test classes in report?
Posted by Nick Stolwijk <ni...@planet.nl>.
I see you can only give one sourcedirectory, but you can add the
parameter "includeTestSourceDirectory" [1].
Hth,
Nick Stolwijk
[1]
http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html#includeTestSourceDirectory
Hoover, William wrote:
> Does anyone know a way to include test classes (src/test/java) in the checkstyle report? I am only recieving results for packaged classes (src/main/java)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org