Skip to content

Commit 58ca8d8

Browse files
use equals rather than endsWith
1 parent 1093646 commit 58ca8d8

File tree

1 file changed

+1
-1
lines changed
  • build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/dependencies/patches

1 file changed

+1
-1
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/dependencies/patches/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public static void patchJar(File inputFile, File outputFile, Collection<PatcherI
107107
);
108108
}
109109
} else {
110-
if (preserveManifest || entryName.endsWith("MANIFEST.MF") == false) {
110+
if (preserveManifest || entryName.equals("META-INF/MANIFEST.MF") == false) {
111111
// Read the entry's data and write it to the new JAR
112112
try (InputStream is = jarFile.getInputStream(entry)) {
113113
is.transferTo(jos);

0 commit comments

Comments
 (0)