Class JettyForker

All Implemented Interfaces:

public class JettyForker extends AbstractForker
JettyForker Uses quickstart to generate a webapp and forks a process to run it.
  • Field Details

    • forkWebXml

      protected File forkWebXml
    • server

      protected Server server
    • webApp

      protected MavenWebAppContext webApp
    • containerClassPath

      protected String containerClassPath
    • webAppPropsFile

      protected File webAppPropsFile
    • contextXml

      protected String contextXml
    • scan

      protected boolean scan
  • Constructor Details

    • JettyForker

      public JettyForker()
  • Method Details

    • isScan

      public boolean isScan()
      the scan
    • setScan

      public void setScan(boolean scan)
      scan - if true, the forked child will scan for changes
    • getWebAppPropsFile

      public File getWebAppPropsFile()
    • setWebAppPropsFile

      public void setWebAppPropsFile(File webAppPropsFile)
    • getForkWebXml

      public File getForkWebXml()
    • setForkWebXml

      public void setForkWebXml(File forkWebXml)
    • getContextXml

      public String getContextXml()
    • setContextXml

      public void setContextXml(String contextXml)
    • getContainerClassPath

      public String getContainerClassPath()
    • setContainerClassPath

      public void setContainerClassPath(String containerClassPath)
    • setWebApp

      public void setWebApp(MavenWebAppContext app)
    • getServer

      public Server getServer()
    • setServer

      public void setServer(Server server)
    • doStart

      public void doStart() throws Exception
      Description copied from class: AbstractLifeCycle
      Method to override to start the lifecycle
      doStart in class AbstractForker
      AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
      Exception - If there was a problem starting. Will cause a transition to FAILED state
    • redeployWebApp

      protected void redeployWebApp() throws Exception
      Specified by:
      redeployWebApp in class AbstractForker
    • createCommand

      public ProcessBuilder createCommand()
      Specified by:
      createCommand in class AbstractForker
    • fileSeparators

      public static String fileSeparators(String path)
    • pathSeparators

      public static String pathSeparators(String path)