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.

Bug 75084

Summary: Bad settings on upgrade from 5.0beta2 to 5.0 final
Product: projects Reporter: ulfzibis <ulfzibis>
Component: AntAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 38552, 42157, 51033, 57701, 60750    
Bug Blocks:    

Description ulfzibis 2006-04-14 22:38:51 UTC
At Tools->Options->Miscellaneous->Ant I found:
Ant Home: C:\Program Files\Java\netbeans-5.0beta2\ide6\ant
                                            !!!!!

After installing NetBeans 5.0 final, I copied the config folder from
{HOME}\.netbeans\5.0beta to {HOME}\.netbeans\5.0 to keep my settings.

1.) After first start of the IDE I scanned the {HOME}\.netbeans\5.0 folder for
occurences of 'beta2' and 'dev' and I discovered many occurences of these
strings. I had to replace them all by hand.

2.) There is no chance to refactor settings by hand, which are disguised in
binary files as in {HOME}\.netbeans\5.0\config\Services\*.SETTINGS; e.g. 'Ant Home'

Please find a solution for those problems, as they have a long history: Issues
57701, 60750, 38552, 51033.

I don't feel like doing beta-test anymore, if these problems are not solved
satisfactorily.
Comment 1 Peter Pis 2006-04-17 08:37:12 UTC
Reassigning to "ant" for evaluation.
Comment 2 Jesse Glick 2006-04-17 16:41:39 UTC
Problem in 5.0b2 userdir probably issue #65142 or similar (bug in prerelease
versions of IDE).

Re. more general comments - nobody likes *.settings files and we are looking to
replace them with the Preferences API in NB 6.0 but it will take some work to
get there. I can't speak to how exactly this will affect settings import, but it
ought to make it much easier to diagnose upgrade problems and to get them right
on the development side before user testing. Anyway Issuezilla is a poor forum
for this; use IZ for specific reproducible bug reports and use nbdev for other
comments.

*** This issue has been marked as a duplicate of 65142 ***
Comment 3 ulfzibis 2006-06-30 11:08:25 UTC
Issue 65142 was fixed Nov 10 2005, but this issue was discovered Apr 14 2006.

How can this bug be fixed as duplicate of 65142 ?

Now I have NB5.5 Q-build 3 installed. I'll bet you, that I will have the same
problems when NB5.5 final is out!
Comment 4 Jesse Glick 2006-08-10 21:53:00 UTC
The bug was not in the 5.0 release, it was in the 5.0 beta which incorrectly
stored the path to the IDE installation in your Ant settings even if you did not
explicitly change your Ant location. Which IDE you import *to* is not relevant;
it matters which IDE you imported *from*.

The simplest fix is to delete
$userdir/config/Services/org-apache-tools-ant-module-AntSettings.settings. 6.0
dev builds also let you click "Use Default" in Ant Settings to reset "Ant Home";
not sure if this is present in 5.0 or not.

*** This issue has been marked as a duplicate of 65142 ***