On 2009-11-18, <jgl...@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-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org