Class Main
java.lang.Object
org.eclipse.jetty.start.Main
Main start class.
This class is intended to be the main class listed in the MANIFEST.MF of the start.jar archive. It allows the Jetty Application server to be started with the command "java -jar start.jar".
Argument processing steps:
- Directory Location: jetty.home=[directory] (the jetty.home location)
- Directory Location: jetty.base=[directory] (the jetty.base location)
- Start Logging behavior: --debug (debugging enabled)
- Start Logging behavior: --start-log-file=logs/start.log (output start logs to logs/start.log location)
- Module Resolution
- Properties Resolution
- Present Optional Informational Options
- Normal Startup
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcopyInThread(InputStream in, OutputStream out) voiddestroy()private voidprivate voiddumpClasspathWithVersions(Classpath classpath) private StringgetVersion(File element) voidvoidinvokeMain(ClassLoader classloader, StartArgs args) voidlistConfig(StartArgs args) voidlistModules(StartArgs args) static voidprivate StringnormalizeURI(String uri) static booleanprintTextResource(String resourceName) processCommandLine(String[] cmdLine) processCommandLine(List<String> cmdLine) Convenience forprocessCommandLine(cmdLine.toArray(new String[cmdLine.size()]))voidstart()voidvoidstop()voidStop a running jetty instance.voidvoidusage(boolean exit) (package private) static voidusageExit(int exit) (package private) static void
-
Field Details
-
EXIT_USAGE
private static final int EXIT_USAGE- See Also:
-
baseHome
-
jsvcStartArgs
-
-
Constructor Details
-
Main
- Throws:
IOException
-
-
Method Details
-
main
-
usageExit
static void usageExit(int exit) -
usageExit
-
copyInThread
-
dumpClasspathWithVersions
-
getBaseHome
-
getVersion
-
invokeMain
public void invokeMain(ClassLoader classloader, StartArgs args) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, ClassNotFoundException, IOException -
listConfig
-
listModules
-
processCommandLine
Convenience forprocessCommandLine(cmdLine.toArray(new String[cmdLine.size()]))- Parameters:
cmdLine- the command line- Returns:
- the start args parsed from the command line
- Throws:
Exception- if unable to process the command line
-
processCommandLine
-
normalizeURI
-
start
- Throws:
IOExceptionInterruptedException
-
doStop
-
stop
-
stop
-
usage
public void usage(boolean exit) -
printTextResource
-
init
-
start
-
stop
-
destroy
public void destroy()
-