From 054b7c7ef47a6989d28a01c76e3683c5ff1714b5 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Wed, 11 Aug 2021 10:31:51 +0200 Subject: [PATCH] Issue #6476 - Show message if JVM args are present but new JVM is spawned Updates after review: reduced the WARN message lines. Signed-off-by: Simone Bordet --- jetty-start/src/main/java/org/eclipse/jetty/start/Main.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java b/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java index 16dc6876874a..82c7ad3df4a5 100644 --- a/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java +++ b/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java @@ -475,9 +475,7 @@ else if (args.isCreateFiles() || !args.getStartModules().isEmpty()) .filter(module -> !module.getJvmArgs().isEmpty()) .map(Module::getName) .collect(Collectors.toList()); - StartLog.warn("Forking second JVM due to forking module(s): %s.", execModules); - StartLog.warn("Consider using option --dry-run to generate the command line:"); - StartLog.warn("$(java -jar $JETTY_HOME/start.jar --dry-run)"); + StartLog.warn("Forking second JVM due to forking module(s): %s. Use --dry-run to generate the command line to avoid forking.", execModules); ProcessBuilder pbuilder = new ProcessBuilder(cmd.getArgs()); StartLog.endStartLog();