Skip to content

Commit

Permalink
chore(aot): do not delete args file (#3120)
Browse files Browse the repository at this point in the history
don't delete aot args file each time
  • Loading branch information
cromoteca authored Jan 9, 2025
1 parent d6e5b26 commit 3eb42e3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private static Path generateAotArtifacts(
engineConfiguration.getArtifactId()).toList();

var argsFile = engineConfiguration.getBuildDir()
.resolve("aot-args-" + System.currentTimeMillis() + ".txt");
.resolve("hilla-aot-args.txt");
Files.write(argsFile, settings);

var javaExecutable = ProcessHandle.current().info().command()
Expand All @@ -92,9 +92,7 @@ private static Path generateAotArtifacts(
int exitCode = new ProcessBuilder().inheritIO()
.command(javaExecutable, "@" + argsFile).start().waitFor();

if (exitCode == 0) {
Files.delete(argsFile);
} else {
if (exitCode != 0) {
LOGGER.error(
SPRING_AOT_PROCESSOR + " exited with code: " + exitCode);
}
Expand Down

0 comments on commit 3eb42e3

Please sign in to comment.