Skip to content

Commit

Permalink
Merge pull request #10952 from mariofusco/jar_ext
Browse files Browse the repository at this point in the history
put renamed jar extension in a String constant so it could be safely …
  • Loading branch information
geoand authored Jul 24, 2020
2 parents 2a9d2ca + 934b100 commit 42dbdd0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 42dbdd0

Please sign in to comment.