You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Stefan Bodewig <bo...@apache.org> on 2009/11/18 05:59:47 UTC
Re: svn commit: r881624 - in /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs: SubAnt.java optional/PropertyFile.java
On 2009-11-18, <jg...@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