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 115989 - nbjdk.home removed from nbuild/user.build.properties by module customizer if JDK not listed in Java Platform Manager
Summary: nbjdk.home removed from nbuild/user.build.properties by module customizer if ...
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-19 13:35 UTC by Padraig Obriain
Modified: 2007-10-16 01:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Padraig Obriain 2007-09-19 13:35:37 UTC
I chose Properties for the Mercurial project.

In the API Versioning tab I changed the Specification Version. After pressing OK I found that the contents of
nbbuild/user.build.properties had disappeared and the file was empty.
Comment 1 Antonin Nebuzelsky 2007-09-21 14:56:19 UTC
What version of the IDE are you using? You set Version of this issue to 5.0. Are you really still using NB 5.0?
Comment 2 Padraig Obriain 2007-09-24 07:44:58 UTC
Sorry. I am using 6.0.
Comment 3 Jesse Glick 2007-09-25 22:32:00 UTC
Never happened to me. Can you provide steps to reproduce from scratch please?
Comment 4 Padraig Obriain 2007-09-26 08:56:01 UTC
bash-3.00$ cat user.build.properties 
sigtest.skip.check=true
nbjdk.home=/usr/jdk/jdk1.5.0_12

Now I right click on Mercurial project and choose Properties. I change Specification Version in API Versioning and click OK.

bash-3.00$ cat user.build.properties 
sigtest.skip.check=true
bash-3.00$ 
Comment 5 Jesse Glick 2007-09-26 18:45:02 UTC
Now I see what you are talking about - just one property, in the case that you had no matching registered platform in
the IDE. The Properties dialog sets the Java Platform combo to the default platform (since it cannot display an
arbitrary path) but makes the mistake of applying this change to disk even though you did not touch that combo.

Anyone feel like taking this one?
Comment 6 Jesse Glick 2007-10-16 01:56:03 UTC
Checking in SingleModuleProperties.java;
/shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/ui/customizer/SingleModuleProperties.java,v
 <--  SingleModuleProperties.java
new revision: 1.75; previous revision: 1.74
done