Skip to content

Commit

Permalink
Issue #6476 - Show message if JVM args are present but new JVM is spa…
Browse files Browse the repository at this point in the history
…wned

* Updated --list-config to report whether a JVM is forked.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Aug 11, 2021
1 parent 1641053 commit ef05630
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions jetty-start/src/main/java/org/eclipse/jetty/start/StartArgs.java
Expand Up @@ -302,7 +302,7 @@ public void dumpEnvironment()
// Jetty Environment
System.out.println();
System.out.println("Jetty Environment:");
System.out.println("-----------------");
System.out.println("------------------");
dumpProperty(JETTY_VERSION_KEY);
dumpProperty(JETTY_TAG_NAME_KEY);
dumpProperty(JETTY_BUILDNUM_KEY);
Expand Down Expand Up @@ -330,26 +330,20 @@ public void dumpEnvironment()

public void dumpJvmArgs()
{
System.out.println();
System.out.println("JVM Arguments:");
System.out.println("--------------");
if (jvmArgs.isEmpty())
{
System.out.println(" (no jvm args specified)");
return;
}

System.out.println();
System.out.println("Forked JVM Arguments:");
System.out.println("---------------------");

for (String jvmArgKey : jvmArgs)
{
String value = System.getProperty(jvmArgKey);
if (value != null)
{
System.out.printf(" %s = %s%n", jvmArgKey, value);
}
else
{
System.out.printf(" %s%n", jvmArgKey);
}
}
}

Expand Down

0 comments on commit ef05630

Please sign in to comment.