You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "michael-o (via GitHub)" <gi...@apache.org> on 2023/06/07 13:20:01 UTC

[GitHub] [maven-shared-jar] michael-o commented on a diff in pull request #21: [MSHARED-1256] - Add support for Multi-Release jars

michael-o commented on code in PR #21:
URL: https://github.com/apache/maven-shared-jar/pull/21#discussion_r1221589180


##########
src/main/java/org/apache/maven/shared/jar/classes/JarClassesAnalysis.java:
##########
@@ -51,8 +57,18 @@
 @Named
 @SuppressWarnings("checkstyle:MagicNumber")
 public class JarClassesAnalysis {
+
     private final Logger logger = LoggerFactory.getLogger(getClass());
 
+    /**
+     * Constant representing the classes in the root of a Multi-Release JAR file.
+     * Meaning outside of any given META-INF/versions/NN/... entry.
+     */
+    private static final Integer ROOT = 0;
+
+    private static final Pattern CLASS_FILTER_MULTI_RELEASE =
+            Pattern.compile("^META-INF/versions/(\\d{1,2})/.*\\.class$");

Review Comment:
   Stupid question, what about resources here? Are they overridden/shadowed as well?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org