Fantasic! By the way, Maven rocks!
- Dmitri
----- Original Message -----
From: "Pete Kazmier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 10:57 AM
Subject: Re: Can files be excluded from metrics?
> On Sun, Apr 28, 2002 at 11:21:23PM -0400, Pete Kazmier wrote:
> > On Sun, Apr 28, 2002 at 08:43:37PM -0400, Dmitri Plotnikov wrote:
> > > JXPath has a whole package generated entirely by JavaCC, which does
not give
> > > much attention to style. I was wondering if there is a way to
configure
> > > Maven to exclude that package from metrics, specifically checkstyle?
> >
> > I made the appropriate modifications to allow you to specify the
> > patterns used for the include/exclude patterns of the checkstyle task.
> > I'll commit the changes in the morning after I finish the doc changes.
>
> I've committed the changes and updated the site documentation (both
> Properties doc and Build File doc). In summary, two new properties have
> been added: ${checkstyle.includes} and ${checkstyle.excludes}. These
> are comma-separated lists of Ant patterns (relative to ${src.dir}).
>
> For example, to exclude files in the following directory:
> src/java/org/apache/maven/java/parser and assuming ${src.dir} is "src",
> the following line would be added to your project.properties file:
>
> checkstyle.excludes = java/org/apache/mavan/java/parser/**
>
> Thanks,
> Pete
>
>