Return-Path: Delivered-To: apmail-incubator-rat-dev-archive@minotaur.apache.org Received: (qmail 91910 invoked from network); 17 Nov 2009 23:15:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Nov 2009 23:15:13 -0000 Received: (qmail 11641 invoked by uid 500); 17 Nov 2009 23:15:13 -0000 Delivered-To: apmail-incubator-rat-dev-archive@incubator.apache.org Received: (qmail 11599 invoked by uid 500); 17 Nov 2009 23:15:13 -0000 Mailing-List: contact rat-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: rat-dev@incubator.apache.org Delivered-To: mailing list rat-dev@incubator.apache.org Received: (qmail 11589 invoked by uid 99); 17 Nov 2009 23:15:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 23:15:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ross.gardler@googlemail.com designates 209.85.220.214 as permitted sender) Received: from [209.85.220.214] (HELO mail-fx0-f214.google.com) (209.85.220.214) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 23:15:01 +0000 Received: by fxm6 with SMTP id 6so653662fxm.20 for ; Tue, 17 Nov 2009 15:14:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=GgLj78/2XyIgEiMx+whErIolOq/lNwdPqHYVSV1HNNY=; b=S6XKMlHeYltmv5N1sBBqRB9Ni/dZ+9nblvAbZdSoTr1bThHnnjM21X3LIRLaOTGOjj NJnGx28I3kX6Ls8TvSxsD2BW/GDlxCHXm7UCAIcmbdJiya+zAZEg1o3M0K9p7x6SSj0f u8KiZn5V1m6koib2gj5k9g0CIfoopFygZE89I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=iUIpoBrxJPoYfVjydTTH7wWCKfmt2XhRZI+FWKp+G2elZenpJAotZRmYax0m4fqCTy hFzyHsoCI4FP+h3VJzuAUrl6sjB7z9PJPLin6r3ACT9ls3X/9w+Q0U5EtroqP5huNpgy eNCrB+cq3k2PytQVEc1Qq0gtzAKrcmAWA3sUc= MIME-Version: 1.0 Sender: ross.gardler@googlemail.com Received: by 10.239.139.207 with SMTP id u15mr1014463hbu.95.1258499681090; Tue, 17 Nov 2009 15:14:41 -0800 (PST) From: Ross Gardler Date: Tue, 17 Nov 2009 23:14:21 +0000 X-Google-Sender-Auth: 5558538bbb2a85bf Message-ID: <61c9bc470911171514u41825c9ud28bd3276ab3babc@mail.gmail.com> Subject: RAT example use cases (Re: RAT running nicely against Forrest with excludes) To: rat-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 2009/11/17 David Crossley : ... > I did used to do scanning and license header fixing using > my old committers/relicense/src/perl/insert_license.pl|txt > After getting a similar exclusions list working with RAT > we now have nice correlation of reports. Good work, RAT. Thanks for the validation David. Prompted by Davids useful mail I thought I would point out that I use RAT in a Maven build system. The build will fail if some adds a file without a license header. If someone is using a different build system (e.g. Eclipse) and forgets to run Maven before committing the Hudson CI server will fail within 15 minutes. I've found this amazingly useful for keeping things in order. The configuration (which demonstrates excludes in Maven) is: org.codehaus.mojo rat-maven-plugin .pmd derby.log repository/**/* reports/**/* simal/**/* build/**/* simalDOAPFilestore/**/* simalRepository/**/* local.simal.properties local.simal.test.properties verify check -- Ross Gardler OSS Watch - supporting open source in education and research http://www.oss-watch.ac.uk