Skip to content

Commit e0994ec

Browse files
qxoakurtakov
authored andcommitted
fix: resource excluding change ** to maven standard
1 parent 205483c commit e0994ec

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
@@ -586,7 +586,7 @@ private void addResourceFolder(IClasspathDescriptor classpath, IPath resourceFol
586586
log.info("Adding resource folder " + resourceFolder);
587587
IClasspathEntryDescriptor descriptor = classpath.addSourceEntry(resourceFolder, outputPath,
588588
toIPathList(resource.getIncludes(), null),
589-
toIPathList(resource.getExcludes(), "**/*.java"), false /*optional*/);
589+
toIPathList(resource.getExcludes(), null), false /*optional*/);
590590
descriptor.setClasspathAttribute(IClasspathManager.TEST_ATTRIBUTE, addTestFlag ? "true" : null);
591591
descriptor.setClasspathAttribute(IClasspathAttribute.OPTIONAL, "true"); //$NON-NLS-1$
592592
}
@@ -599,9 +599,6 @@ private IPath[] toIPathList(final List<String> fileNames, final String defaultPa
599599
for (final String files : fileNames) {
600600
retList.add(IPath.fromOSString(files));
601601
}
602-
if (defaultPattern != null) {
603-
retList.add(IPath.fromOSString(defaultPattern));
604-
}
605602
return retList.toArray(DEFAULT_INCLUSIONS);
606603
}
607604

0 commit comments

Comments
 (0)