-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 André,
On 10/3/13 4:03 PM, André Warnier wrote: > I think that the basic misunderstanding here is simply this : The > executable program that is being launched by the above > command-line is not Tomcat. It is "/usr/lib/jvm/jre/bin/java". > > All the rest of the command-line options and parameters are options > and parameters for "/usr/lib/jvm/jre/bin/java", and are parsed by > "/usr/lib/jvm/jre/bin/java". Including the -Dfoo="bar". Yes and no. That foolishness with quoting, etc. only happens with old DOS programs. On UNIX (since forever, I think), the shell parses the command-line and tokenizes everything. The argv vector contains exactly what the parent process provided... nothing more, nothing less. Those quotes appear in the argument vector therefore they are part of the parameter. The parameter -Dfoo=bar (or -Dfoo="bar") itself is in fact parsed by the JVM process, but trivially: if it looks like -Dsomething, then set the system property "something" to whatever the value is after the = sign. You don't even need an equals sign, and it will work (I'm actually not sure what value you get ... maybe empty string?). If the quotes are there in the argv vector, they will be there in the system property's value. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSTsrGAAoJEBzwKT+lPKRYAsAP/ihT1sBnaMG0gSGk4Ln1D3oG J2WEc4qI6tCsxfmzq5VdAe99aK3lyLwa0bXLDHjoOnp4h5/GDPjn6Lt7nygtEqfG 4wvmG7ZJhinrniK3HkbacIfHayRBF92k0ChkUAAkm49yKt1263hsSeEZKfApO3Ds KavZE0zGqGWdnnq0BVXi21lAhbbKfldp+17XO4CHYEQcRhrSdnlgsNIUid7xGWPq u0ubi4UAYsv48ufYHO4p/r0uLSm5/KR7BgfIBJBWOiB7mW1q98Y8zDLkpXeh5oA7 d70N2LXplOm9egMe76bwww9aJgjb4/4A308Lnjn/oFKPT0HqfDXTpkmDAZs/4Dhy OsthAtry3nKPdr/OH9qzk6AF8hwYinmROZLN3GlGPBTsNUqBtTwej1HuTsBgHkls EsJtX9EQ2DVDGQErShH93yjJkb/Scc1VbzV/Zm+gZs+8bMFJrcorJecoE6ueV0ba CtM2TZn0wM/OmdXreqkw+LJZTJxrrOxgIqucw3kwbLSdccCj9u45wj/T/TvdhTyt 5Y8H5O1Bv4mDP2WmqkPRRQJwBTSpCSVnNLxL2o6vDpuSZy0Q4IbLcqeTNPhLiL/r 6Synn8tRC3RpgFkVpLX0SNlQ7mbaA63opIMX8TMLzqNXjJch/F/N+NNAttBAXjuP E63xKpBSnc8YWr1mZT0q =cysF -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org