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.
Created upgrade.properties file in installed netbeans root directory contains BACKUP_FOLDER. For example on Windows value of this property could be: c:\myuserdir But this is incorrect value because property values must contain escaped backslash characters. So correct value should be: c:\\myuserdir This problem arises only when you starting NB 3.5 for the first time with userdir specified by you (-userdir parameter on command line). Setting issue priority to P2 because on Windows platform importing setting always fail in described case.
Created attachment 9893 [details] diff of changes
Fixed in main trunk. Checking in src/org/netbeans/installer/actions/WriteAction.java; /cvs/installer/src/org/netbeans/installer/actions/WriteAction.java,v <-- WriteAction.java new revision: 1.13; previous revision: 1.12 done
please ask someone from QA to verify the fix. I'll approve shortly once I see QA confirmation
Diff reviewed without objections, using Properties object will solve this problem.
Fix verified on dev build installer, approved.
approved for 3.5 by release coordinator
Fixed in release35. Checking in src/org/netbeans/installer/actions/WriteAction.java; /cvs/installer/src/org/netbeans/installer/actions/WriteAction.java,v <-- WriteAction.java new revision: 1.11.2.2; previous revision: 1.11.2.1 done
IMHO, not sure if the fix is 100% reliable:-/ I took todays 3.5Beta installer NetBeansIDE-release35-200304142350-win32.exe and I've got this raw in the upgrade.properties file: BACKUP_FOLDER=C\:\\Documents and Settings\\dm103276\\.netbeans\\3.4 but should be double slashed also the drive C: ? What's your openion? Shell we reopen it?
Created attachment 9941 [details] my upgr properties generated by today installater
Daniel, Backslash character preceding colon character in your path is correct. See javadoc for "store" method of "java.util.Properties" class: http://java.sun.com/j2se/1.4.1/docs/api/java/util/Properties.html#store(java.io.OutputStream, java.lang.String) I think the fix works correctly.
Thanks David. I wasn't sure about it. (and sorry my comment was unclear as I'm reading it again) so, I think we could mark it as verified