ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@seessle.de>
Subject [PATCH] Property.java Re: <delete> unable to remove a file
Date Mon, 02 Oct 2000 09:07:46 GMT
Ensure the property-file is always closed after reading it - don't rely on
garbage collection.

----- Original Message -----
From: "Peter Donald" <pjdonald@cs.latrobe.edu.au>
To: <ant-dev@jakarta.apache.org>
Sent: Monday, October 02, 2000 11:42 AM
Subject: Re: <delete> unable to remove a file


> >I'm not sure what Java is 'required to do' if you use something like
> >'props.load(new FileInputStream(file));' - it can immediately close the
file
> >after loading, but will it do in all cases?
>
> Nope and it is the source of much hell in developing on NT. You should
> always explictly close all file handles or else NT will not be able to
> delete them ;(
>


Mime
View raw message