vscode-tomcat icon indicating copy to clipboard operation
vscode-tomcat copied to clipboard

Setting environment variables for Tomcat

Open 0xmn opened this issue 5 years ago • 4 comments

  • 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.

0xmn avatar Aug 07 '19 09:08 0xmn

This would essentially need the same solution as in #224.

jaapspiering avatar Aug 20 '19 11:08 jaapspiering

here is the PR: https://github.com/adashen/vscode-tomcat/pull/263

gregd72002 avatar Sep 10 '19 13:09 gregd72002

Having .env would be nice, but setenv.sh or some other way of dynamically setting vars should be supported as well.

srstsavage avatar Oct 28 '19 18:10 srstsavage

Is there a timeline for this?

sourav-dey avatar May 21 '20 20:05 sourav-dey