Skip to content

Commit

Permalink
Use relative path for JDK 17-based AppCDS dump
Browse files Browse the repository at this point in the history
This makes the AppCDS feature more portable where the build and
deployment paths differ, but are otherwise identical (for example s2i
use-case).

Closes: quarkusio#33069
  • Loading branch information
jerboaa authored and manofthepeace committed May 16, 2023
1 parent b93e3f9 commit de29f7b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,10 @@ private Path createAppCDSFromExit(JarBuildItem jarResult,
command.addAll(javaArgs);
if (isFastJar) {
command
.add(jarResult.getLibraryDir().getParent().resolve(JarResultBuildStep.QUARKUS_RUN_JAR).toAbsolutePath()
.toString());
.add(jarResult.getLibraryDir().getParent().resolve(JarResultBuildStep.QUARKUS_RUN_JAR)
.getFileName().toString());
} else {
command.add(jarResult.getPath().toAbsolutePath().toString());
command.add(jarResult.getPath().getFileName().toString());
}
}

Expand Down

0 comments on commit de29f7b

Please sign in to comment.