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 200632

Summary: default_options concatenation behavior in launchers for .conf
Product: platform Reporter: honza.hubeny
Component: Launchers&CLIAssignee: Libor Fischmeistr <lfischmeistr>
Status: NEW ---    
Severity: normal CC: ynov
Priority: P2    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description honza.hubeny 2011-08-03 12:58:53 UTC
Consider following situation:
We have netbeans platform application lets call it "app".

Linux:
The application is installed in 

/app

therefore the global settings file is in 
 
/app/etc/app.conf

the user file is in 

/home/user/.app/dev/etc/app.conf

Now when i write to user conf file

default_options+=" -J-D-something "

The application concatenates this string to the default_options string from the global configuration file.

Now the _BUG_:

On Windows (we tested XP and Vista) this scenario does not work:
The application is installed in 

C:\app

therefore the global settings file is in 
 
C:\app\etc\app.conf

the user file is in 

C:\Users\AppData\.app\dev\etc\app.conf

Now when i write to user conf file

default_options+=" -J-D-something "

The application completely ignores the string. The only way how to force to not ignore the string is to write 

default_options=" -J-D-something "

to the C:\Users\AppData\.app\dev\etc\app.conf file.

However by this we completely delete the previous (global) content of default_options variable.
Comment 1 Yulia Novozhilova 2011-08-05 13:28:48 UTC
Reproduced for NetBeans itself on Windows XP.
Comment 2 honza.hubeny 2011-08-11 07:43:29 UTC
The correct behaviour on Linux is not the default behaviour.

we change the app/bin/app shell script 

the interpreter for our app is not /bin/sh but /bin/bash
therefore the 
default_options+="" string works in linux. We need similar behaviour in windows.

I forget to add this in my first report.
Comment 3 Antonin Nebuzelsky 2011-10-14 14:40:03 UTC
Not a bug. Changing to enhancement.

As you've already found out, this is not supported on Linux either. The recommended way of setting up customized .conf file in userdir is by copying the one from installdir.
http://wiki.netbeans.org/FaqNetbeansConf

What is the particular usecase for you?
Comment 4 Jiri Rechtacek 2012-02-16 16:57:30 UTC
Assigned to new owner.