Skip to content

Commit 55afb02

Browse files
qxoHannesWell
authored andcommitted
fix: :resource excluding change ** to maven standard
1 parent eec33d4 commit 55afb02

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ private void addResourceFolder(IClasspathDescriptor classpath, IPath resourceFol
584584
log.info("Adding resource folder " + resourceFolder);
585585
IClasspathEntryDescriptor descriptor = classpath.addSourceEntry(resourceFolder, outputPath,
586586
toIPathList(resource.getIncludes(), null),
587-
toIPathList(resource.getExcludes(), "**/*.java"), false /*optional*/);
587+
toIPathList(resource.getExcludes(), null), false /*optional*/);
588588
descriptor.setClasspathAttribute(IClasspathManager.TEST_ATTRIBUTE, addTestFlag ? "true" : null);
589589
descriptor.setClasspathAttribute(IClasspathAttribute.OPTIONAL, "true"); //$NON-NLS-1$
590590
}
@@ -597,9 +597,6 @@ private IPath[] toIPathList(final List<String> fileNames, final String defaultPa
597597
for (final String files : fileNames) {
598598
retList.add(IPath.fromOSString(files));
599599
}
600-
if (defaultPattern != null) {
601-
retList.add(IPath.fromOSString(defaultPattern));
602-
}
603600
return retList.toArray(DEFAULT_INCLUSIONS);
604601
}
605602

0 commit comments

Comments
 (0)