After many unsuccessful attempts, I finally managed to create a model NetBeans
project that can handle environment variables, for run and debug targets, per
java project.
To be unusual, a total of 3 lines should be added to the existing
build-impl.xml.
I needed control of the variable LD_LIBRARY_PATH and the following example is
based on that variable:
1.
In the target -init-private, add
<property name = "application.env" value =
"/mnt/WD-Elements-25A1/src/postgresql-devel/20200119/ lib" />
2.
In the target run, add behind <arg line="${application.args}" />
<env key="LD_LIBRARY_PATH" path="${application.env}" />
3.
In the target -debug-start-debuggee, add behind <arg line = "$
{application.args}" />
<env key="LD_LIBRARY_PATH" path="${application.env}" />
Vladimir Kokovic, DP senior (69)
Serbia, Belgrade, March 27, 2020
---------------------------------------------------------------------
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