You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "belingueres (via GitHub)" <gi...@apache.org> on 2023/06/08 01:58:11 UTC
[GitHub] [maven-shared-jar] belingueres commented on a diff in pull request #21: [MSHARED-1256] - Add support for Multi-Release jars
belingueres commented on code in PR #21:
URL: https://github.com/apache/maven-shared-jar/pull/21#discussion_r1222360464
##########
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:
I'll modify it to allow getting the List<JarEntry> on each detected release.
--
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