FileUtils.createTempFile() - should we delete on exit?
Bug 17512 http://issues.apache.org/bugzilla/show_bug.cgi?id=17512 proposes a fix for an annoyance that 'plagues' a number of Ant tasks. Tasks like junit and javac can create temporary files that get left behind if the build is terminated via 'ctrl-c' Should the fix be applied to each task that creates temp files, or should it be put in FileUtils.createTempFile(). Since 1.6 will require JDK 1.2+ we can avoid the ugly reflection in the patch (attached to the bug report). Thoughts? Jesse Stockall - [EMAIL PROTECTED] CRYPTOCard Corp.
Re: FileUtils.createTempFile() - should we delete on exit?
On Tue, 15 Apr 2003 01:58 pm, Jesse Stockall wrote: Bug 17512 http://issues.apache.org/bugzilla/show_bug.cgi?id=17512 proposes a fix for an annoyance that 'plagues' a number of Ant tasks. Tasks like junit and javac can create temporary files that get left behind if the build is terminated via 'ctrl-c' Should the fix be applied to each task that creates temp files, or should it be put in FileUtils.createTempFile(). Since 1.6 will require JDK 1.2+ we can avoid the ugly reflection in the patch (attached to the bug report). Thoughts? +1 to a centralized cleanup of temp files. It may need to be an parameter, though. Conor
Re: FileUtils.createTempFile() - should we delete on exit?
On Mon, 14 Apr 2003, Jesse Stockall [EMAIL PROTECTED] wrote: Should the fix be applied to each task that creates temp files, or should it be put in FileUtils.createTempFile(). The later (and I agree with Conor on the optional additional argument). Stefan