Skip to content

Commit

Permalink
Ignoring duplicated "*-info.class" files
Browse files Browse the repository at this point in the history
  • Loading branch information
LikeTheSalad committed Nov 3, 2023
1 parent 6be4a3b commit 6d8da5f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ public void retain(Plugin.Engine.Source.Element element) throws IOException {
}
outputStream.closeEntry();
} catch (ZipException exception) {
if (!element.getName().startsWith("META-INF")) {
String name = element.getName();
if (!name.startsWith("META-INF") && !name.endsWith("-info.class")) {
throw exception;
}
}
Expand Down

0 comments on commit 6d8da5f

Please sign in to comment.