mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-01 14:59:50 +00:00
Delete argfile on JVM exit
Closes gh-42841
This commit is contained in:
+3
-1
@@ -477,7 +477,9 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
|
||||
}
|
||||
|
||||
static ArgFile create(CharSequence content) throws IOException {
|
||||
ArgFile argFile = new ArgFile(Files.createTempFile("spring-boot-", ".argfile"));
|
||||
Path tempFile = Files.createTempFile("spring-boot-", ".argfile");
|
||||
tempFile.toFile().deleteOnExit();
|
||||
ArgFile argFile = new ArgFile(tempFile);
|
||||
argFile.write(content);
|
||||
return argFile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user