Skip to content

Commit 5e5f41b

Browse files
committed
Merge branch '3.3.x'
Closes gh-42845
2 parents 37c562a + 9cced06 commit 5e5f41b

File tree

1 file changed

+3
-1
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven

1 file changed

+3
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractRunMojo.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,9 @@ private String escape(CharSequence content) {
460460
}
461461

462462
static ArgFile create(CharSequence content) throws IOException {
463-
ArgFile argFile = new ArgFile(Files.createTempFile("spring-boot-", ".argfile"));
463+
Path tempFile = Files.createTempFile("spring-boot-", ".argfile");
464+
tempFile.toFile().deleteOnExit();
465+
ArgFile argFile = new ArgFile(tempFile);
464466
argFile.write(content);
465467
return argFile;
466468
}

0 commit comments

Comments
 (0)