Skip to content

Commit a3a9641

Browse files
committed
fix: :resource excluding change ** to maven standard
1 parent 04b6e6f commit a3a9641

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
@@ -583,7 +583,7 @@ private void addResourceFolder(IClasspathDescriptor classpath, IPath resourceFol
583583
log.info("Adding resource folder " + resourceFolder);
584584
IClasspathEntryDescriptor descriptor = classpath.addSourceEntry(resourceFolder, outputPath,
585585
toIPathList(resource.getIncludes(), null),
586-
toIPathList(resource.getExcludes(), "**/*.java"), false /*optional*/);
586+
toIPathList(resource.getExcludes(), null), false /*optional*/);
587587
descriptor.setClasspathAttribute(IClasspathManager.TEST_ATTRIBUTE, addTestFlag ? "true" : null);
588588
descriptor.setClasspathAttribute(IClasspathAttribute.OPTIONAL, "true"); //$NON-NLS-1$
589589
}
@@ -596,9 +596,6 @@ private IPath[] toIPathList(final List<String> fileNames, final String defaultPa
596596
for (final String files : fileNames) {
597597
retList.add(IPath.fromOSString(files));
598598
}
599-
if (defaultPattern != null) {
600-
retList.add(IPath.fromOSString(defaultPattern));
601-
}
602599
return retList.toArray(DEFAULT_INCLUSIONS);
603600
}
604601

0 commit comments

Comments
 (0)