Package org.eclipse.jetty.start
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voidvoidinvokeMain(ClassLoader classloader, StartArgs args) voidlistConfig(PrintStream out, StartArgs args) voidlistModules(PrintStream out, StartArgs args) static voidstatic booleanprintTextResource(String resourceName) processCommandLine(String[] cmdLine) processCommandLine(List<String> cmdLine) Convenience forprocessCommandLine(cmdLine.toArray(new String[cmdLine.size()]))voidshowModules(PrintStream out, StartArgs args) voidstart()voidvoidstop()voidStop a running jetty instance.voidvoidusage(boolean exit)
-
Constructor Details
-
Main
- Throws:
IOException
-
-
Method Details
-
main
-
getBaseHome
-
invokeMain
public void invokeMain(ClassLoader classloader, StartArgs args) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, IOException -
listConfig
-
listModules
-
showModules
-
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
-
start
- Throws:
IOExceptionInterruptedException
-
start
-
stop
-
stop
-
stop
public void stop() -
usage
public void usage(boolean exit) -
printTextResource
-
init
-
destroy
public void destroy()
-