ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: FileUtils#createTempFile : what about using java.io.tmpdir as a default there ?
Date Fri, 20 Jun 2003 12:35:11 GMT
I think java.io.tmpdir is not used because
it is not in java 1.1.

As Ant does not support 1.1 (except to
generated 1.1 classes), use should
probably be made of java.io.File#createTempFile().

Peter.

On Thu, 2003-06-19 at 23:32, Antoine Levy-Lambert wrote:
> One user complained that FixCrLf changes the timestamp of its <destdir/> (because
it created temp files there).
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20870
> I have just done a change which will not work to the satisfaction of the user if the
destdir of <fixcrlf/> is the current directory.
> 
> I have noticed that when one does not specify a directory to create a temp file 
> (argument parentDir=null)
> the method FileUtils#createTempFile public File createTempFile(String prefix, String
suffix, File parentDir)
> creates the temp file in the current directory.
> Why do we not use java.io.tmpdir ?
> 
> Cheers
> 
> Antoine


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


Mime
View raw message