Package org.eclipse.jetty.maven.plugin
Class QuickStartGenerator
java.lang.Object
org.eclipse.jetty.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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generate()
Run enough of jetty to generate a full quickstart xml file for the webapp.void
setContextXml
(String contextXml) void
void
setWebAppPropsFile
(File webAppPropsFile)
-
Constructor Details
-
QuickStartGenerator
- Parameters:
quickstartXml
- the file to generate quickstart intowebApp
- the webapp for which to generate quickstart
-
-
Method Details
-
getWebApp
- Returns:
- the webApp
-
getQuickstartXml
- Returns:
- the quickstartXml
-
getServer
- Returns:
- the server
-
setServer
- Parameters:
server
- the server to use
-
getWebAppPropsFile
-
setWebAppPropsFile
- Parameters:
webAppPropsFile
- properties file describing the webapp
-
getContextXml
-
setContextXml
- Parameters:
contextXml
- a context xml file to apply to the webapp
-
generate
Run enough of jetty to generate a full quickstart xml file for the webapp. The tmp directory is persisted.- Throws:
Exception
-