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 - default_options concatenation behavior in launchers for .conf
Summary: default_options concatenation behavior in launchers for .conf
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-03 12:58 UTC by honza.hubeny
Modified: 2014-02-10 14:15 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.