Return-Path: Delivered-To: apmail-incubator-rat-dev-archive@minotaur.apache.org Received: (qmail 7244 invoked from network); 14 Nov 2009 00:21:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Nov 2009 00:21:56 -0000 Received: (qmail 7120 invoked by uid 500); 14 Nov 2009 00:21:56 -0000 Delivered-To: apmail-incubator-rat-dev-archive@incubator.apache.org Received: (qmail 7075 invoked by uid 500); 14 Nov 2009 00:21:55 -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 7028 invoked by uid 99); 14 Nov 2009 00:21:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Nov 2009 00:21:55 +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 hyrum_wright@mail.utexas.edu designates 146.6.25.7 as permitted sender) Received: from [146.6.25.7] (HELO ironclad.mail.utexas.edu) (146.6.25.7) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Nov 2009 00:21:42 +0000 DomainKey-Signature: s=main; d=mail.utexas.edu; c=nofws; q=dns; h=X-IronPort-MID:Received:Received:Received:From: Content-Type:Subject:Date:Message-Id:To:Mime-Version: X-Mailer; b=NGqamjr4aeK7g5TjM9VzctrOgR/kMyCVRIMqKgbuKx0zFnj5ujRSeABX wO82ABjOf/MAAyCfqrDTSh+lMhu7nJTNV79ya3zIKaCjXAIPXX3wnWN47 X9iQTyxKIK5ZGpImiOUw/5Ll2JM90brLCWYf15afd6iNbucL0wMa/up7l Y=; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.utexas.edu; i=hyrum_wright@mail.utexas.edu; q=dns/txt; s=main; t=1258158101; x=1289694101; h=from:sender:reply-to:subject:date:message-id:to:cc: mime-version:content-transfer-encoding:content-id: content-description:resent-date:resent-from:resent-sender: resent-to:resent-cc:resent-message-id:in-reply-to: references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; z=From:=20"Hyrum=20K.=20Wright"=20|Subject:=20[PATCH]=20Allow=20RAT=20to=20run=20on =20.tar.gz=20archives|Date:=20Fri,=2013=20Nov=202009=2018 :21:18=20-0600|Message-Id:=20|To:=20rat-dev@incubator.apache .org|Mime-Version:=201.0=20(Apple=20Message=20framework =20v1077); bh=tmuBssPWQoDkI6N5GSzoygtEyNmuvpA08TGjDom8+YU=; b=rbfWihHAjiGxnTT+qVzuAp63VUCHlhvgU1hJy96x9fq/Q9c5AQGJJX75 wa3S656zfAvkHSon9WkXrwizPh8TYib0zyPHQnnTeY2EfhPRQmgcP3UPn EuEUPa0uRaNNRbvC6/AZ0H+j4KWpdRdUE9BVvODawtU6qraqk8YfYBH66 4=; X-IronPort-MID: 1409962 Received: from wb2-a.mail.utexas.edu ([128.83.126.136]) by ironclad.mail.utexas.edu with SMTP; 13 Nov 2009 18:21:19 -0600 Received: (qmail 14113 invoked from network); 14 Nov 2009 00:21:18 -0000 Received: from 24-155-243-203.dyn.grandenetworks.net (HELO ?192.168.1.103?) (hyrum?wright@24.155.243.203) by wb2.mail.utexas.edu with (RC4-SHA encrypted) ESMTPSA; 14 Nov 2009 00:21:18 -0000 From: "Hyrum K. Wright" Content-Type: multipart/mixed; boundary=Apple-Mail-23-678004148 Subject: [PATCH] Allow RAT to run on .tar.gz archives Date: Fri, 13 Nov 2009 18:21:18 -0600 Message-Id: To: rat-dev@incubator.apache.org Mime-Version: 1.0 (Apple Message framework v1077) X-Mailer: Apple Mail (2.1077) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-23-678004148 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii In using RAT to check potential Subversion release tarballs, I've bumped = into a couple of its, uh, limitations. To that end, I've hacked up the = attached patch which fixes the immediate itch of not wanting to have to = unpack the tarball before running the tool. I'm not sure what the RAT = patch submission guidelines are, so I'm just sending it here, with the = following caveats. Caveats: * Reports aren't sorted properly for .tar.gz; standard filesystem = targets remain unaffected. * Needed to add a new dependency (ant) to pick up TarInputStream and = friends. * My maven-fu is *very* limited (read: nonexistent) so I kind of = guessed at the build system tweakage which needed to happen for the = above. Comments/pointers/tweaks appreciated. * My Java is a bit rusty, so I may not have done things in the most = efficient way. * I don't know the standard RAT coding conventions, but attempted to = follow existing conventions where possible. Future work: * Allow running on .zip and .tar.bz2 tarballs. This should be = relatively easy. * Properly sort the output of the report generated by running RAT on = tarballs. Let me know of any feedback you may have, or feel free to just tweak the = patch before committing. I plan on implementing the followup patches = after this one gets committed. Cheers, -Hyrum --Apple-Mail-23-678004148--