IntelliJ : executing a program with environment variables stored in a separated file

Viewed 18215

My application needs custom environment variables to run. I have created a run configuration in IntelliJ in order to start the application. For environment variables, I have set VM options.

Example :

-DDATABASE_URL=jdbc:oracle:thin:@dbbdevdb0397.fr:1522:DBZD08

My concern is to add all environment variables in my IntelliJ configuration automatically. That is why I have set these environment variables inside a separated file

Example : DEV.env

DATABASE_URL=jdbc:oracle:thin:@dbbdevdb0397.fr:1522:DBZD08

Is it possible to load this file DEV.env in a IntelliJ run configuration as it could be done by SH script:

eval $(cat DEV.env | sed 's/^/export /');
1 Answers
Related