On Wed, 4 Oct 2023 at 10:16, Richard Grin
<[email protected]> 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: [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

Reply via email to