Many thanks! - makes total sense once you see it.
And yeah, a single report DIR with multiple report files - that's fine.
Merging the report itself wasn't my intention.



On Mon, Apr 4, 2011 at 11:36 AM, szczepiq <[email protected]> wrote:

> Hey,
>
> Having single checkstyle configuration for multiple projects is easy. For
> example you can do it this way:
>
> def configDir = new File(rootDir, 'config')
>
> subprojects {
>     apply plugin: 'java'
>     ...
>     apply plugin: 'code-quality'
>     checkstyleConfigFileName = "$configDir/checkstyle.xml"
>
> Single report is tricky. I don't think at the moment report is merged for
> multiple subprojects. However, you can have a single report dir that will
> contain all individual report files. Also, when checkstyle task fails you
> can see the failures on the console so you can quickly fix problems without
> browsing the result files.
>
> Hope that helps!
> Szczepan
>
> On Mon, Apr 4, 2011 at 4:31 PM, Bruce Petro <[email protected]> wrote:
>
>> We have multiple projects within a build and when I try to add the
>> checkStyle plugin, it appears to want an individual checkStyle configuration
>> for each project.   How would you specify a single configuration and single
>> report file for the entire group of projects?  I don't see anything about
>> this in the documentation.
>
>
>

Reply via email to