ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: svn commit: r881624 - in /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs: SubAnt.java optional/PropertyFile.java
Date Wed, 18 Nov 2009 04:59:47 GMT
On 2009-11-18, <jglick@apache.org> wrote:

>>            } catch (IOException x) {
>>                propertyfile.delete(); // possibly corrupt
>>                throw new BuildException(x, getLocation());
>>            } finally {
>>                os.close();
>>            }

Is this going to work on an OS that locks files by default?  I mean,
will the task be able to delete the file before it is closed?

It may be a good idea to use FileUtils.tryHardToDelete anyway (and
FileUtils.close 8-).

Stefan

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


Mime
View raw message