Skip to content

Commit 60203bb

Browse files
committed
Ignore .gitignore and .gitatributes file types from packaging
Caused by codehaus-plexus/plexus-utils#174 . Fixes eclipse-tycho#966 .
1 parent efb33b1 commit 60203bb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/AbstractTychoPackagingMojo.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ protected FileSet getFileSet(File basedir, List<String> includes, List<String> e
103103
}
104104
if (useDefaultExcludes) {
105105
allExcludes.addAll(Arrays.asList(AbstractScanner.DEFAULTEXCLUDES));
106+
// keep ignoring the following files after
107+
// https://github.com/codehaus-plexus/plexus-utils/pull/174
108+
allExcludes.add("**/.gitignore");
109+
allExcludes.add("**/.gitattributes");
106110
}
107111

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

tycho-source-plugin/src/main/java/org/eclipse/tycho/source/SourceFeatureMojo.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,9 @@ protected FileSet getFileSet(File basedir, List<String> includes, List<String> e
662662
}
663663
if (useDefaultExcludes) {
664664
allExcludes.addAll(Arrays.asList(AbstractScanner.DEFAULTEXCLUDES));
665+
// keep ignoring the following files after https://github.com/codehaus-plexus/plexus-utils/pull/174
666+
allExcludes.add("**/.gitignore");
667+
allExcludes.add("**/.gitattributes");
665668
}
666669

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

0 commit comments

Comments
 (0)