Return-Path: X-Original-To: apmail-creadur-dev-archive@www.apache.org Delivered-To: apmail-creadur-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC96B11F7C for ; Tue, 10 Jun 2014 13:41:03 +0000 (UTC) Received: (qmail 55659 invoked by uid 500); 10 Jun 2014 13:41:03 -0000 Delivered-To: apmail-creadur-dev-archive@creadur.apache.org Received: (qmail 54771 invoked by uid 500); 10 Jun 2014 13:41:02 -0000 Mailing-List: contact dev-help@creadur.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@creadur.apache.org Delivered-To: mailing list dev@creadur.apache.org Received: (qmail 54190 invoked by uid 99); 10 Jun 2014 13:41:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2014 13:41:01 +0000 Date: Tue, 10 Jun 2014 13:41:01 +0000 (UTC) From: "Dennis Lundberg (JIRA)" To: dev@creadur.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (RAT-161) Support exclusion of paths: "path/to/file.ext" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/RAT-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14026438#comment-14026438 ] Dennis Lundberg commented on RAT-161: ------------------------------------- Hi Erik, First some questions that are not really related to your question. Are you using Rat from the command line today? What build tool is Spark using? Perhaps it would be easier for you to use either the Ant task or Maven plugin for Rat. As far as I understand it, the -E option specifies a file that contains regular expressions which are then used as exclude patterns. There is also the -e option which can be used to specify an exclude pattern directly. Some examples might explain better: {noformat} rat -E file-that-contains-regular-expressions rat -e pattern-for-files-that-should-be-excluded {noformat} Over at the Maven project we use the Maven plugin to run Rat, and there we use the excludes configuration, which corresponds to the -e option, see http://creadur.apache.org/rat/apache-rat-plugin/check-mojo.html#excludes Here is an example: {code:xml} org.apache.rat apache-rat-plugin src/it/multi-modules-aggregate/child-b/src/test/java/org/apache/maven/plugins/checkstyle/its/AppTest.java src/main/resources/config/maven-header.txt src/it/MCHECKSTYLE-225-customHeader/build-tools/src/main/resources/test/custom-header.txt src/it/MCHECKSTYLE-225-LICENSE.txt/build-tools/src/main/resources/LICENSE.txt src/main/resources/config/sun_checks.xml {code} Note that the code you referred to in SPARK-1493 is a very old branch from when Rat was first accepted into the Incubator. Current code is in svn here: http://svn.apache.org/viewvc/creadur/rat/trunk/ > Support exclusion of paths: "path/to/file.ext" > ------------------------------------------------ > > Key: RAT-161 > URL: https://issues.apache.org/jira/browse/RAT-161 > Project: Apache Rat > Issue Type: New Feature > Components: reports > Reporter: Erik Erlandson > Priority: Minor > Fix For: 0.11 > > > It would be advantageous to be able to exclude specific files, e.g. "path/to/file.ext" > The current '-E' feature cannot do this, as the filter patterns are only applied to individual files as directory tree is traversed, so a filter will never see "path/to/file.ext", only "path", "to" and "file.ext" > See for example: SPARK-1493 -- This message was sent by Atlassian JIRA (v6.2#6252)