This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
document.getDocumentElement().normalize();
OutputStream os = null;
try {
OutputStream os = new FileOutputStream( file );
os = new FileOutputStream(file);
XMLUtil.write(document, os);
os.close();
} catch (Exception e) {
e.printStackTrace();
}
//#154904
if (!file.delete()) {
new IOException("Corresponding update would not be installed since it is not possible to modify or delete update tracking file " + file).printStackTrace();
} else {
new IOException("Update tracking file was deleted since permissions does not allow to modify it: " + file).printStackTrace();
} catch (Exception ex) {
ex.printStackTrace();
if (os != null) {
} catch (IOException e) {
} finally {
void deleteUnusedFiles() {