Thanks to everyone who replied with different solutions, especially to Neil for this detailed explanation about how to use the actions.

Le 04/10/2023 à 19:07, Neil C Smith a écrit :
On Wed, 4 Oct 2023 at 10:16, Richard Grin
<richard.g...@univ-cotedazur.fr> wrote:
Is it possible to add an environment variable for *only one* Java
project in NetBeans?
...
I use Maven to build the project.
Incidentally, to do this with Maven projects, use the project properties.

Under Actions, choose eg. `Run project` or `Run file via main()`.

Use the Add button under Set Properties and choose New Environment
Variable.  This will add to the text area eg. `Env.FOO=bar`.

That will be passed along to your project just when you run it via that action.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to