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.
Try to create silent state file: java -Dnbi.product.remote.registries=http://nephrite.russia.sun.com/nbi/milestone10/get-registry?registry=NetBeans+6.0+M6 -jar nbi-engine.jar --record C:\nbi-silent\state.txt Pressing the Finish button brings FinalizationException. See log in attachment.
Created attachment 37960 [details] log details
-> M12
-> M15
The issue is that the directory "C:\nbi-silent", that doesn`t exist, is not created when saving XML file. I guess we should modify method XMLUtils#saveXMLDocument with "file.getParent().mkdirs()" invocation or reusing some of existing FileUtils# for the same purposes.
Disagree. It should not generally be the burden of a utils class to verify and, more importantly, correct the environment. #saveXmlDocument should fail, but the method which calls it should make sure that the directory exists.
Agree.:) Then we should fix the issue by adding "mkdirs" functionality in Registry#saveStateFile.
Yep. :)
Fixed. Checking in Registry.java; /cvs/nbi/engine/src/org/netbeans/installer/product/Registry.java,v <-- Registry.java new revision: 1.30; previous revision: 1.29 done