Class QuickStartGenerator


  • public class QuickStartGenerator
    extends java.lang.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 Detail

      • QuickStartGenerator

        public QuickStartGenerator​(java.io.File quickstartXml,
                                   MavenWebAppContext webApp)
        Parameters:
        quickstartXml - the file to generate quickstart into
        webApp - the webapp for which to generate quickstart
    • Method Detail

      • getQuickstartXml

        public java.io.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 java.io.File getWebAppPropsFile()
      • setWebAppPropsFile

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

        public java.lang.String getContextXml()
      • setContextXml

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

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