From 24c8c432210d73bfe844bc9a708de96d81981bd9 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 12 Apr 2020 12:30:58 +0100 Subject: [PATCH] Use TEMP_PREFIX and JAR_SUFFIX constants in writeSignedJar Signed-off-by: Graham --- asm/src/main/java/dev/openrs2/asm/classpath/Library.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asm/src/main/java/dev/openrs2/asm/classpath/Library.kt b/asm/src/main/java/dev/openrs2/asm/classpath/Library.kt index 1804fa8f..7b2d5944 100644 --- a/asm/src/main/java/dev/openrs2/asm/classpath/Library.kt +++ b/asm/src/main/java/dev/openrs2/asm/classpath/Library.kt @@ -94,11 +94,11 @@ class Library constructor() : Iterable { fun writeSignedJar(classPath: ClassPath, path: Path, keyStore: Pkcs12KeyStore, manifest: Manifest? = null) { logger.info { "Writing signed jar $path" } - val unsignedPath = Files.createTempFile("tmp", ".jar") + val unsignedPath = Files.createTempFile(TEMP_PREFIX, JAR_SUFFIX) try { writeJar(classPath, unsignedPath, manifest) - val signedPath = Files.createTempFile("tmp", ".jar") + val signedPath = Files.createTempFile(TEMP_PREFIX, JAR_SUFFIX) try { keyStore.signJar(unsignedPath, signedPath) DeterministicJarOutputStream.repack(signedPath, path)