You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by Rick Curtis <cu...@gmail.com> on 2010/06/15 00:08:47 UTC

Run against only classes that are under version control

Is it possible to have rat run against only those classes which are under
version control? Often times I have junk in my workspace that I don't want
Rat to inspect.

Re: Run against only classes that are under version control

Posted by Stefan Bodewig <bo...@apache.org>.
On 2010-06-15, Rick Curtis wrote:

> Is it possible to have rat run against only those classes which are under
> version control?

No built-in or even easy way.

All three ways to run RAT provide means to restrict RAT to a known list
of files (or rather exclude certain files in the CLI case).  Depending
on the way you use RAT, there may be different options.

For the Ant task and svn you may be able to create a resource collection
that only contains files that have a corresponding file in
.svn/text-base - similar approaches may exist for other SCMs.  I guess
you could do the same for the Maven plugin or fiddle with find for the
CLI.

Stefan