Reputation: 1626
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!
Upvotes: 2
Views: 9550
Reputation: 16660
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.
Upvotes: 1
Reputation: 40176
In case if you want to view all environment variables...
... in Windows, type set
in command prompt.
... in Mac / Linux, type env
in Terminal.
Upvotes: 5