Hi,
Am Montag, den 25.11.2019, 22:14 +0200 schrieb Emilian Bold:
> I had no idea nbexec can handle multiline values in netbeans.conf
> like
> that. So this should work for all launchers?
>
> Note that right now netbeans.conf is not really generated (minus a
> small part), it's stored in git like that, with a huge line for
> netbeans_default_options.
>
my reading is, that nbexec (the platform launcher:
platform/o.n.bootstrap/launcher) does not even read a config file, the
netbeans IDE launcher (nb/ide.launcher) does, but it will most probably
not work correctly for multiline options.
The unix launcher sources the config file (this explains why multiline
strings seem to work):
if [ -f "${userdir}"/etc/netbeans.conf ] ; then
. "${userdir}"/etc/netbeans.conf
fi
it will however break on windows (nblaunher.cpp,
NbLauncher::parseConfigFile): There the file is read with fgets (line
based). So it will not correctly parse a config file with multiline
options.
TL;DR: You'll need to fix the windows launcher to support multiline
strings (some C++ knowledge is helpful here).
There is also a macOS launcher, but it seems to be unused.
HTH
Matthias
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists