From 934b1005f9b76cd8cd92b440cb9a5e570f59e0e9 Mon Sep 17 00:00:00 2001 From: mariofusco Date: Fri, 24 Jul 2020 10:07:04 +0200 Subject: [PATCH] put renamed jar extension in a String constant so it could be safely referred by extensions --- .../io/quarkus/deployment/pkg/steps/JarResultBuildStep.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java index eea0ab52e94ab..f1dfdc84ce467 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java @@ -139,6 +139,7 @@ public class JarResultBuildStep { public static final String APP = "app"; public static final String QUARKUS = "quarkus"; public static final String DEFAULT_FAST_JAR_DIRECTORY_NAME = "quarkus-app"; + public static final String RENAMED_JAR_EXTENSION = ".jar.original"; @BuildStep OutputTargetBuildItem outputTarget(BuildSystemTargetBuildItem bst, PackageConfig packageConfig) { @@ -257,7 +258,7 @@ private JarBuildItem buildUberJar(CurateOutcomeBuildItem curateOutcomeBuildItem, final Path originalJar; if (Files.exists(standardJar)) { originalJar = outputTargetBuildItem.getOutputDirectory() - .resolve(outputTargetBuildItem.getBaseName() + ".jar.original"); + .resolve(outputTargetBuildItem.getBaseName() + RENAMED_JAR_EXTENSION); } else { originalJar = null; }