creadur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <>
Subject [jira] [Commented] (RAT-171) Allow exclude patterns to be read from a file or files
Date Wed, 15 Apr 2015 20:56:00 GMT


Christopher Tubbs commented on RAT-171:

By "Java-patterns", do you mean Java regular expressions? Because that's not the syntax of
.gitignore files (or svn ignores), and as such, I can anticipate that could be quite problematic.
(I'm actually not really sure what format the apache-rat-plugin uses for wildcard excludes
anyway, because I've only ever used exact paths, relative to my module root, since the plugin
documentation doesn't provide any further explanation.)

I assume that excludes starting with "/" are not treated the same as the way .gitignore treats
them. Can you tell me if my assumption is correct?

Also, git allows .gitignore files in any sub-directory. Does this change only parse .gitignore
at the root, or in all locations?

> Allow exclude patterns to be read from a file or files
> ------------------------------------------------------
>                 Key: RAT-171
>                 URL:
>             Project: Apache Rat
>          Issue Type: New Feature
>    Affects Versions: 0.11
>            Reporter: Ignasi Barrera
>            Assignee: Philipp Ottlinger
>             Fix For: 0.12
>         Attachments: RAT-171.patch
> h3. Context
> The apache-rat-plugin ignores by default the .gitignore files. However, for every file/pattern
added to those files, an explicit exclusion must be set in the plugin's configuration.
> Given that git-ignored files won't be uploaded to the SCM and shouldn't be part of a
release, it would be nice that the apache-rat-plugin automatically considered those git-ignored
files as implicit exclusions.
> h3. Implemented for 
> Currently implemented for the following soure code management systems:
> * SVN
> * Git
> * Bazaar
> * Mercurial and 
> * CVS.
> h3. Example usage
> You can configure parsing SCM ignore files by a environment variable 
> {code}
> mvn -U -debug -Drat.parseSCMIgnoresAsExcludes=true
> {code}
> or in your configuration section of apache-rat-maven plugin 
> {code}
> <parseSCMIgnoresAsExcludes>true</true>
> {code}
> This features is enabled by default.
> In case you want to speed up the build you may disable it and set it to 
> {code}
> false
> {code}
> .

This message was sent by Atlassian JIRA

View raw message