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 168040 - Slightly incorrect information written to netbeans.conf
Summary: Slightly incorrect information written to netbeans.conf
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-02 14:42 UTC by Petr Jiricka
Modified: 2009-12-25 01:16 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 Petr Jiricka 2009-07-02 14:42:02 UTC
I installed the daily build on Mac OS X and the following was added to netbeans.conf:

netbeans_default_options="-J-Dorg.glassfish.v3ee6.installRoot=/Applications/NetBeans/glassfish-v3-b52
-J-Dorg.glassfish.v3ee6.installRoot=/Applications/NetBeans/glassfish-v3-b52
-J-Dcom.sun.aas.installRoot=/Applications/NetBeans/SUNWappserver -J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m
-J-XX:MaxPermSize=200m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true
-J-Dsun.java2d.noddraw=true"

The following part is added twice: -J-Dorg.glassfish.v3ee6.installRoot=/Applications/NetBeans/glassfish-v3-b52 

BTW, I see that v2.1 information is also added although it's not a part of the bundle (it was installed by a previous
version of NetBeans). I assume this is intentional?
Comment 1 Yulia Novozhilova 2009-07-03 08:17:44 UTC
Thank you for a catch.
GF v3 is added twice since is was added by netbeans-base's postinstall script and by Glassfish v3's postinstall script
as well. I will improve the script so that it will check if GF is already added. 
Gv v2.1 is added (when GF v2.1 installation dir exist and not empty) by netbeans-base's postinstall script and this is
intentional.
Comment 2 Yulia Novozhilova 2009-11-09 08:21:15 UTC
Fixed: http://hg.netbeans.org/main/rev/37f920d591d7
Comment 3 Yulia Novozhilova 2009-11-23 07:24:27 UTC
Script doesn't work in case if tomcat is installed first. The line

>  if  grep -q "netbeans_default_options=\"-J-Dcom.sun.aas.installRoot=$gf_dir" netbeans.conf

has to be improved.
Comment 4 Quality Engineering 2009-12-22 23:43:54 UTC
Integrated into 'main-golden', will be available in build *200912230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0327e4c4702c
User: Yulia Novozhilova <ynov@netbeans.org>
Log: #168040 -  Slightly incorrect information written to netbeans.conf