Class QuickStartGenerator

java.lang.Object
org.eclipse.jetty.maven.plugin.QuickStartGenerator

public class QuickStartGenerator extends Object
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 Details

    • QuickStartGenerator

      public QuickStartGenerator(File quickstartXml, MavenWebAppContext webApp)
      Parameters:
      quickstartXml - the file to generate quickstart into
      webApp - the webapp for which to generate quickstart
  • Method Details

    • getWebApp

      public MavenWebAppContext getWebApp()
      Returns:
      the webApp
    • getQuickstartXml

      public File getQuickstartXml()
      Returns:
      the quickstartXml
    • getServer

      public Server getServer()
      Returns:
      the server
    • setServer

      public void setServer(Server server)
      Parameters:
      server - the server to use
    • getWebAppPropsFile

      public File getWebAppPropsFile()
    • setWebAppPropsFile

      public void setWebAppPropsFile(File webAppPropsFile)
      Parameters:
      webAppPropsFile - properties file describing the webapp
    • getContextXml

      public String getContextXml()
    • setContextXml

      public void setContextXml(String contextXml)
      Parameters:
      contextXml - a context xml file to apply to the webapp
    • generate

      public void generate() throws Exception
      Run enough of jetty to generate a full quickstart xml file for the webapp. The tmp directory is persisted.
      Throws:
      Exception