+ Updated usage to show that --list-config lists the enabled Modules + fixed unsupported operation in --list-all-modules + list enabled modules with default --list-module
This commit is contained in:
parent
e9c6c942ea
commit
41a7d8bcb5
|
@ -266,6 +266,10 @@ public class Main
|
||||||
System.out.printf("%nModules %s:%n", t);
|
System.out.printf("%nModules %s:%n", t);
|
||||||
System.out.printf("=========%s%n", "=".repeat(t.length()));
|
System.out.printf("=========%s%n", "=".repeat(t.length()));
|
||||||
args.getAllModules().listModules(tags);
|
args.getAllModules().listModules(tags);
|
||||||
|
|
||||||
|
// for default module listings, also show enabled modules
|
||||||
|
if ("[-internal]".equals(t) || "[*]".equals(t))
|
||||||
|
args.getAllModules().listEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showModules(StartArgs args)
|
public void showModules(StartArgs args)
|
||||||
|
|
|
@ -167,6 +167,8 @@ public class Modules implements Iterable<Module>
|
||||||
if (tags.contains("-*"))
|
if (tags.contains("-*"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
tags = new ArrayList<>(tags);
|
||||||
|
|
||||||
boolean wild = tags.contains("*");
|
boolean wild = tags.contains("*");
|
||||||
Set<String> included = new HashSet<>();
|
Set<String> included = new HashSet<>();
|
||||||
if (wild)
|
if (wild)
|
||||||
|
|
|
@ -347,8 +347,6 @@ public class StartArgs
|
||||||
}
|
}
|
||||||
System.out.println();
|
System.out.println();
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void dumpJvmArgs()
|
public void dumpJvmArgs()
|
||||||
|
|
|
@ -19,12 +19,15 @@ Command Line Options:
|
||||||
--list-config List the resolved configuration that will be used to
|
--list-config List the resolved configuration that will be used to
|
||||||
start Jetty.
|
start Jetty.
|
||||||
Output includes:
|
Output includes:
|
||||||
|
o Enabled jetty modules
|
||||||
o Java Environment
|
o Java Environment
|
||||||
o Jetty Environment
|
o Jetty Environment
|
||||||
|
o Config file search order
|
||||||
o JVM Arguments
|
o JVM Arguments
|
||||||
|
o System Properties
|
||||||
o Properties
|
o Properties
|
||||||
o Server Classpath
|
o Java Classpath
|
||||||
o Server XML Configuration
|
o XML Configuration files
|
||||||
|
|
||||||
--dry-run Print the command line that the start.jar generates,
|
--dry-run Print the command line that the start.jar generates,
|
||||||
then exit. This may be used to generate command lines
|
then exit. This may be used to generate command lines
|
||||||
|
|
Loading…
Reference in New Issue