Skip to content
Snippets Groups Projects
Commit 337eda3b authored by Pekka Enberg's avatar Pekka Enberg
Browse files

java.so: Pass "-D" command line options to JVM

Pass the "-D" command line options that are used to configure JMX, for
example, to the JVM.
parent aa98b306
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ int main(int argc, char **argv)
break;
// Pass some options directly to the JVM
if (starts_with(argv[i], "-verbose") || starts_with(argv[i], "-X") || starts_with(argv[i], "-javaagent")) {
if (starts_with(argv[i], "-verbose") || starts_with(argv[i], "-D") || starts_with(argv[i], "-X") || starts_with(argv[i], "-javaagent")) {
options.push_back(mkoption(argv[i]));
argv[i] = NULL; // so we don't pass it to RunJava
argc--;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment