Class QuickStartGenerator
java.lang.Object
org.eclipse.jetty.ee10.maven.plugin.QuickStartGenerator
Run enough of jetty in order to generate a quickstart file for a
webapp. Optionally, some essential elements of the WebAppContext
configuration can also be converted to properties and saved to
a file after the quickstart generation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate()Run enough of jetty to generate a full quickstart xml file for the webapp.Get the quickstartXml.org.eclipse.jetty.server.ServerGet the server.Get the webApp.voidsetContextXml(String contextXml) Set a context xml file to apply to the webapp.voidsetServer(org.eclipse.jetty.server.Server server) Set the server to use.voidsetWebAppProps(Path webAppProps) Set properties file describing the webapp.
-
Constructor Details
-
QuickStartGenerator
- Parameters:
quickstartXml- the file to generate quickstart intowebApp- the webapp for which to generate quickstart
-
-
Method Details
-
getWebApp
-
getQuickstartXml
-
getServer
public org.eclipse.jetty.server.Server getServer()Get the server.- Returns:
- the server
-
setServer
public void setServer(org.eclipse.jetty.server.Server server) Set the server to use.- Parameters:
server- the server to use
-
getWebAppProps
-
setWebAppProps
Set properties file describing the webapp.- Parameters:
webAppProps- properties file describing the webapp
-
getContextXml
-
setContextXml
Set a context xml file to apply to the webapp.- Parameters:
contextXml- a context xml file to apply to the webapp
-
generate
-