Class JettyForkedChild

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.maven.plugin.JettyForkedChild
All Implemented Interfaces:
LifeCycle

public class JettyForkedChild extends AbstractLifeCycle
JettyForkedChild This is the class that is executed when the jetty maven plugin forks a process when DeploymentMode=FORKED.
  • Field Details

    • jetty

      protected JettyEmbedder jetty
    • tokenFile

      protected File tokenFile
    • scanner

      protected PathWatcher scanner
    • webAppPropsFile

      protected File webAppPropsFile
  • Constructor Details

    • JettyForkedChild

      public JettyForkedChild(String[] args) throws Exception
      Parameters:
      args - arguments that were passed to main
      Throws:
      Exception
  • Method Details

    • configure

      public void configure(String[] args) throws Exception
      Based on the args passed to the program, configure jetty.
      Parameters:
      args - args that were passed to the program.
      Throws:
      Exception
    • doStart

      public void doStart() throws Exception
      Start a jetty instance and webapp. This thread will wait until jetty exits.
      Overrides:
      doStart in class AbstractLifeCycle
      Throws:
      AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
      Exception - If there was a problem starting. Will cause a transition to FAILED state
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception