[MNG-8766] Maven4 service: TempFileService
Tamas Cservenak opened MNG-8766 and commented
A service, that is for creating temp files. Created temp files are automatically cleaned up after session ends.
No further details from MNG-8766
Please take a look https://github.com/apache/maven/pull/11389
What is the purpose for this? Unittests? If yes, then there are already JUnit extensions for this :)
What is the purpose for this? Unittests? If yes, then there are already JUnit extensions for this :)
Not for unit tests. This is a Maven runtime service to allocate temp files/dirs bound to the Session and auto-clean at afterSessionEnd. This implements MNG-8766 to prevent temp leaks; opt-out via -Dmaven.tempfile.keep.