cstamas commented on PR #11389: URL: https://github.com/apache/maven/pull/11389#issuecomment-3492079608
On a related note: in resolver I found this pattern quite useful (to perform cleanup immediately when tmp file was not needed anymore, but in Maven that can happen at session end I guess?): https://github.com/apache/maven-resolver/blob/master/maven-resolver-spi/src/main/java/org/eclipse/aether/spi/io/PathProcessor.java#L180-L210 Basically, the collocated temp file is mostly used, as it creates a temp file "next to target", and after you wrote to it, on close it will be atomically moved to it's place. As this is ideal pattern to "pub-unpub" files on modern FS, like "move to place" and "remove from place", and there are no partial reads possible. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
