Re: System properties: JVM launch versus catalina.properties

2018-12-30 Thread Romain Manni-Bucau
except the name, if run in the same JVM thantomcat it is too late anyway so 2 options are either to not do it or preprocess it IMHO Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github

Re: System properties: JVM launch versus catalina.properties

2018-12-29 Thread Martin Grigorov
Hi Igal, I am not sure this is a good idea. Usually .properties.default files are used as sample files. And one has to rename them to .properties to make use of them. IMO your suggestion will be confusing for people used to this approach. Regards, Martin On Sat, Dec 29, 2018 at 2:11 AM Igal

Re: System properties: JVM launch versus catalina.properties

2018-12-28 Thread Igal Sapir
Chris, On 12/28/2018 7:07 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, Someone asked this question on SO recently: https://stackoverflow.com/questions/53921375/tomcat-overriding-catalina- properties-from-commandline/53952396#53952396 TLDR: this person

Re: System properties: JVM launch versus catalina.properties

2018-12-28 Thread Romain Manni-Bucau
Except if you call java -jar catalina_home/lib/prdtartup.jar which creates a temp file used instead of setenv (just a generator) so you can read it in plain java and launch tomcat only later to ensure it respects all props. This small main would do anything except suceed or fail. Le ven. 28 déc.

Re: System properties: JVM launch versus catalina.properties

2018-12-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Romain, On 12/28/18 10:10, Romain Manni-Bucau wrote: > Hi > > As a user it is nicer to be able to set all system properties in > the same place and catalina code is too late for some of them like > log manager. Why not having a

Re: System properties: JVM launch versus catalina.properties

2018-12-28 Thread Romain Manni-Bucau
Hi As a user it is nicer to be able to set all system properties in the same place and catalina code is too late for some of them like log manager. Why not having a conf/system.properties handled by scripts and in fallback by Tomcat (embedded case)? Would just be a more natural way to write it

System properties: JVM launch versus catalina.properties

2018-12-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, Someone asked this question on SO recently: https://stackoverflow.com/questions/53921375/tomcat-overriding-catalina- properties-from-commandline/53952396#53952396 TLDR: this person wants to set system properties in catalina.properties but be