On 2009-11-18, <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to