Bug 200632 - default_options concatenation behavior in launchers for .conf
default_options concatenation behavior in launchers for .conf
Status: NEW
Product: platform
Classification: Unclassified
Component: Launchers&CLI
7.0
All All
: P2 (vote)
: TBD
Assigned To: Libor Fischmeistr
issues@platform
:
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo