Skip to content

Commit

Permalink
fix: :resource excluding change ** to maven standard
Browse files Browse the repository at this point in the history
  • Loading branch information
qxo committed Feb 18, 2024
1 parent 04b6e6f commit a3a9641
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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$
}
Expand All @@ -596,9 +596,6 @@ private IPath[] toIPathList(final List<String> 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);
}

Expand Down

0 comments on commit a3a9641

Please sign in to comment.