ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: FileUtils#createTempFile : what about using java.io.tmpdir as a default there ?
Date Mon, 23 Jun 2003 14:19:08 GMT
On Mon, 23 Jun 2003, Antoine Levy-Lambert <levylambert@tiscali-dsl.de>
wrote:

> The JavaDoc concerning FileUtils#createTempFile said :
> 
> >>This method is different to File.createTempFile of JDK 1.2 as it doesn't
> create the file itself and doesn't use platform specific temporary directory
> when the parentDir attribute is null.
> 
> It sounds like File#createTempFile actually creates the file ?

It does - that's why I said we'd need to change the javadocs.

> Do we want to call File#deleteOnExit for these temporary files ? 
> (make sure that they get deleted if the VM crashes or exits ?)

I'm not absolutely sure that this would always be the intention of
code that invokes FileUtils#createTempFile.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message