Skip to content

Commit

Permalink
Ignore .gitignore and .gitatributes file types from packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
akurtakov committed May 19, 2022
1 parent efb33b1 commit 31e1714
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Expand Up @@ -103,6 +103,10 @@ protected FileSet getFileSet(File basedir, List<String> includes, List<String> e
}
if (useDefaultExcludes) {
allExcludes.addAll(Arrays.asList(AbstractScanner.DEFAULTEXCLUDES));
// keep ignoring the following files after
// https://github.com/codehaus-plexus/plexus-utils/pull/174
allExcludes.add("**/.gitignore");
allExcludes.add("**/.gitattributes");
}

fileSet.setExcludes(allExcludes.toArray(new String[allExcludes.size()]));
Expand Down
Expand Up @@ -662,6 +662,9 @@ protected FileSet getFileSet(File basedir, List<String> includes, List<String> e
}
if (useDefaultExcludes) {
allExcludes.addAll(Arrays.asList(AbstractScanner.DEFAULTEXCLUDES));
// keep ignoring the following files after https://github.com/codehaus-plexus/plexus-utils/pull/174
allExcludes.add("**/.gitignore");
allExcludes.add("**/.gitattributes");
}

fileSet.setExcludes(allExcludes.toArray(new String[allExcludes.size()]));
Expand Down

0 comments on commit 31e1714

Please sign in to comment.