Class JettyHomeForker

All Implemented Interfaces:
LifeCycle

public class JettyHomeForker extends AbstractForker
JettyHomeBaseForker Unpacks a jetty-home and configures it with a base that allows it to run an unassembled webapp.
  • Field Details

    • webApp

      protected MavenWebAppContext webApp
    • contextXml

      protected String contextXml
    • jettyHome

      protected File jettyHome
      Location of existing jetty home directory
    • jettyHomeZip

      protected File jettyHomeZip
      Zip of jetty-home
    • jettyBase

      protected File jettyBase
      Location of existing jetty base directory
    • baseDir

      protected File baseDir
    • modules

      protected String[] modules
      Optional list of other modules to activate.
    • jettyOptions

      protected String jettyOptions
    • libExtJarFiles

      protected List<File> libExtJarFiles
    • modulesPath

      protected Path modulesPath
    • etcPath

      protected Path etcPath
    • libPath

      protected Path libPath
    • webappPath

      protected Path webappPath
    • mavenLibPath

      protected Path mavenLibPath
    • version

      protected String version
  • Constructor Details

    • JettyHomeForker

      public JettyHomeForker()
  • Method Details

    • setJettyOptions

      public void setJettyOptions(String jettyOptions)
    • getJettyOptions

      public String getJettyOptions()
    • getLibExtJarFiles

      public List<File> getLibExtJarFiles()
    • setLibExtJarFiles

      public void setLibExtJarFiles(List<File> libExtJarFiles)
    • getJettyHome

      public File getJettyHome()
    • setJettyHome

      public void setJettyHome(File jettyHome)
    • getJettyBase

      public File getJettyBase()
    • setJettyBase

      public void setJettyBase(File jettyBase)
    • getModules

      public String[] getModules()
    • setModules

      public void setModules(String[] modules)
    • getContextXmlFile

      public String getContextXmlFile()
    • setContextXml

      public void setContextXml(String contextXml)
    • getJettyHomeZip

      public File getJettyHomeZip()
    • setJettyHomeZip

      public void setJettyHomeZip(File jettyHomeZip)
    • getWebApp

      public MavenWebAppContext getWebApp()
    • setWebApp

      public void setWebApp(MavenWebAppContext webApp)
    • getBaseDir

      public File getBaseDir()
    • setBaseDir

      public void setBaseDir(File baseDir)
    • createCommand

      protected ProcessBuilder createCommand()
      Specified by:
      createCommand in class AbstractForker
    • doStart

      public void doStart() throws Exception
      Description copied from class: AbstractLifeCycle
      Method to override to start the lifecycle
      Overrides:
      doStart in class AbstractForker
      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
    • redeployWebApp

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