Pergunta

I know we can set/add a property to tomcat catalina opts by using set or export command. But how do I get or print all the properties set in CATALINA_OPTS as well as their values? I checked online but couldn't really find a way to print the values. Thanks!

Foi útil?

Solução

In case if you want to view all environment variables...

... in Windows, type set in command prompt.

... in Mac / Linux, type env in Terminal.

Outras dicas

I wouldn't normally suggested editing the standard Tomcat scripts but in this case it is probably the simplest approach.

Look in catalina.[sh|bat] for where CATALINA_BASE and friends are echo'd to the console and add a line to echo CATALINA_OPTS.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top