creadur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Eckenfels (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (RAT-126) Default excludes do not ignore .git/ repository
Date Thu, 21 Feb 2013 02:36:12 GMT

    [ https://issues.apache.org/jira/browse/RAT-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13582814#comment-13582814
] 

Bernd Eckenfels commented on RAT-126:
-------------------------------------

Hello, I just noticed that according to the Source and Comments the defaultExcludes should
already contain .git. And the defaultExcludes are also turned on bye default. At least this
is what the -X debug run of Maven tells me. But still it says "No Excludes". So I am a bit
confused. Maybe it was fixed since 0.8 (there are some changes but no obvious fix). Can anybody
confirm that the excludes feature is excluding any default directorries?

[DEBUG] Configuring mojo 'org.apache.rat:apache-rat-plugin:0.8:check' with basic configurator
-->
[DEBUG]   (f) addDefaultLicenseMatchers = true
[DEBUG]   (f) addLicenseHeaders = false
[DEBUG]   (f) basedir = C:\ws\github\proj
[DEBUG]   (f) excludeSubProjects = true
[DEBUG]   (f) numUnapprovedLicenses = 0
[DEBUG]   (f) reportFile = C:\ws\github\proj\target\rat.txt
[DEBUG]   (f) reportStyle = plain
[DEBUG]   (f) useDefaultExcludes = true              # should match .git
[DEBUG]   (f) useEclipseDefaultExcludes = true   # should match .project
[DEBUG]   (f) useIdeaDefaultExcludes = true
[DEBUG]   (f) useMavenDefaultExcludes = true
[DEBUG] -- end configuration --
[INFO] No excludes

The default list in plexus DirectoryScanner includes:

        "**/*~", "**/#*#", "**/.#*", "**/%*%", "**/._*",
        // CVS
        "**/CVS", "**/CVS/**", "**/.cvsignore",
        // RCS
        "**/RCS", "**/RCS/**",
        // SCCS
        "**/SCCS", "**/SCCS/**",
        // Visual SourceSafe
        "**/vssver.scc",
        // MKS
        "**/project.pj",
        // Subversion
        "**/.svn", "**/.svn/**",
        // Arch
        "**/.arch-ids", "**/.arch-ids/**",
        //Bazaar
        "**/.bzr", "**/.bzr/**",
        //SurroundSCM
        "**/.MySCMServerInfo",
        // Mac
        "**/.DS_Store",
        // Serena Dimensions Version 10
        "**/.metadata", "**/.metadata/**",
        // Mercurial
        "**/.hg", "**/.hg/**",
        // git
        "**/.git", "**/.gitignore", "**/.gitattributes", "**/.git/**",
        // BitKeeper
        "**/BitKeeper", "**/BitKeeper/**", "**/ChangeSet", "**/ChangeSet/**",
        // darcs
        "**/_darcs", "**/_darcs/**", "**/.darcsrepo", "**/.darcsrepo/**", "**/-darcs-backup*",
"**/.darcs-temp-mail" };

Any idea?
                
> Default excludes do not ignore .git/ repository
> -----------------------------------------------
>
>                 Key: RAT-126
>                 URL: https://issues.apache.org/jira/browse/RAT-126
>             Project: Apache Rat
>          Issue Type: Bug
>          Components: maven
>    Affects Versions: 0.8
>         Environment: Windows 7, Maven 3.0.4, Oracle JDK 1.7.0_11, Eclipse
>            Reporter: Bernd Eckenfels
>            Priority: Minor
>
> When running the RAT 0.8 maven plugin from command line (no POM entry for the plugin)
in a Eclipse+Maven project which is checked out from .git/ the plugin will not by default
exclude the repository dotdir.
> C:\ws\proj>\ws\apache-maven-3.0.4\bin\mvn -s ..\empty.xml org.apache.rat:apache-rat-plugin:check
> ...
> [INFO] --- apache-rat-plugin:0.8:check (default-cli) @ et-otp ---
> [INFO] No excludes
> ...
> The excludes should eighter be contained in the eclipse defaults or have its own dotfile
or scm category. A workaround would be to specify the excludes, unfortunatelly there seems
to be no expression associated with the exclude property of the mojo.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message