From 55835292cf5e4579f97708fa2378048ee76451c1 Mon Sep 17 00:00:00 2001 From: qxo Date: Sat, 17 Feb 2024 15:15:08 +0000 Subject: [PATCH] fix: :resource excluding change ** to maven standard --- .../m2e/jdt/internal/AbstractJavaProjectConfigurator.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java index 0b6ef778ff..18ea68ee7c 100644 --- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java +++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java @@ -583,7 +583,7 @@ private void addResourceFolder(IClasspathDescriptor classpath, IPath resourceFol log.info("Adding resource folder " + resourceFolder); IClasspathEntryDescriptor descriptor = classpath.addSourceEntry(resourceFolder, outputPath, toIPathList(resource.getIncludes(), null), - toIPathList(resource.getExcludes(), "**/*.java"), false /*optional*/); + toIPathList(resource.getExcludes(), null), false /*optional*/); descriptor.setClasspathAttribute(IClasspathManager.TEST_ATTRIBUTE, addTestFlag ? "true" : null); descriptor.setClasspathAttribute(IClasspathAttribute.OPTIONAL, "true"); //$NON-NLS-1$ } @@ -596,9 +596,6 @@ private IPath[] toIPathList(final List fileNames, final String defaultPa for (final String files : fileNames) { retList.add(IPath.fromOSString(files)); } - if (defaultPattern != null) { - retList.add(IPath.fromOSString(defaultPattern)); - } return retList.toArray(DEFAULT_INCLUSIONS); }