vscode-tomcat
vscode-tomcat copied to clipboard
Setting environment variables for Tomcat
- VSCode Version: 1.36.1
- OS Version: Ubuntu 18.04.2 LTS
- Tomcat Extension Version:0.11.1
I have a maven project set up. After the build the .war is located in target/app.war and I can start it with 'Run on Tomcat'. How can I pass environment variables to the tomcat? I created a setenv.sh and if I start the tomcat manual it works. setenv.sh is not executed if the extension starts the tomcat. I tried also to create a .env in the root directory of the application containing the required environment variables but it's not working.
This would essentially need the same solution as in #224.
here is the PR: https://github.com/adashen/vscode-tomcat/pull/263
Having .env
would be nice, but setenv.sh
or some other way of dynamically setting vars should be supported as well.
Is there a timeline for this?