Skip to content

Commit

Permalink
Fix remapping of Archloom JIJ dependencies (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte authored Dec 3, 2024
1 parent cc8a7cd commit b060e38
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ public String mapMethodName(final String owner, final String name, final String
Utils.copy(zin, zout);
};

processors.add(new ZipEntryProcessor(ein -> ein.getName().startsWith("META-INF/jarjar/") && ein.getName().endsWith(".jar"),
// While FG put jij jars into META-INF/jarjar, archloom did put them into META-INF/jars
// So to catch more cases, we just remap all jars in META-INF/ or subdirectories thereof
processors.add(new ZipEntryProcessor(ein -> ein.getName().startsWith("META-INF/") && ein.getName().endsWith(".jar"),
(ein, zin, zout) -> this.processNestedJar(processors, defaultProcessor, ein, zin, zout)));

ByteArrayOutputStream memory = input.equals(output) ? new ByteArrayOutputStream() : null;
Expand Down

0 comments on commit b060e38

Please sign in to comment.