Package org.eclipse.jetty.maven.plugin
Class JettyHomeForker
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.maven.plugin.AbstractForker
org.eclipse.jetty.maven.plugin.JettyHomeForker
- All Implemented Interfaces:
LifeCycle
JettyHomeBaseForker
Unpacks a jetty-home and configures it with a base that allows it
to run an unassembled webapp.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
Modifier and TypeFieldDescriptionprotected File
protected String
protected Path
protected File
Location of existing jetty base directoryprotected File
Location of existing jetty home directoryprotected File
Zip of jetty-homeprotected String
protected Path
protected Path
protected String[]
Optional list of other modules to activate.protected Path
protected String
protected MavenWebAppContext
protected Path
Fields inherited from class org.eclipse.jetty.maven.plugin.AbstractForker
env, exitVm, jettyOutputFile, jettyProperties, jettyXmlFiles, jvmArgs, maxChildStartCheckMs, maxChildStartChecks, stopAtShutdown, stopKey, stopPort, systemProperties, tokenFile, waitForChild, workDir
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ProcessBuilder
void
doStart()
Method to override to start the lifecycleString[]
protected void
void
setBaseDir
(File baseDir) void
setContextXml
(String contextXml) void
setJettyBase
(File jettyBase) void
setJettyHome
(File jettyHome) void
setJettyHomeZip
(File jettyHomeZip) void
setJettyOptions
(String jettyOptions) void
setLibExtJarFiles
(List<File> libExtJarFiles) void
setModules
(String[] modules) void
setWebApp
(MavenWebAppContext webApp) Methods inherited from class org.eclipse.jetty.maven.plugin.AbstractForker
getEnv, getJettyOutputFile, getJettyProperties, getJettyXmlFiles, getJvmArgs, getMaxChildStartCheckMs, getMaxChildtartChecks, getStopKey, getStopPort, getSystemProperties, getTokenFile, getWorkDir, isExitVm, isStopAtShutdown, isWaitForChild, setEnv, setExitVm, setJettyOutputFile, setJettyProperties, setJettyXmlFiles, setJvmArgs, setMaxChildStartCheckMs, setMaxChildStartChecks, setStopAtShutdown, setStopKey, setStopPort, setSystemProperties, setTokenFile, setWaitForChild, setWorkDir
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString
-
Field Details
-
webApp
-
contextXml
-
jettyHome
Location of existing jetty home directory -
jettyHomeZip
Zip of jetty-home -
jettyBase
Location of existing jetty base directory -
baseDir
-
modules
Optional list of other modules to activate. -
jettyOptions
-
libExtJarFiles
-
modulesPath
-
etcPath
-
libPath
-
webappPath
-
mavenLibPath
-
version
-
-
Constructor Details
-
JettyHomeForker
public JettyHomeForker()
-
-
Method Details
-
setJettyOptions
-
getJettyOptions
-
getLibExtJarFiles
-
setLibExtJarFiles
-
getJettyHome
-
setJettyHome
-
getJettyBase
-
setJettyBase
-
getModules
-
setModules
-
getContextXmlFile
-
setContextXml
-
getJettyHomeZip
-
setJettyHomeZip
-
getWebApp
-
setWebApp
-
getBaseDir
-
setBaseDir
-
createCommand
- Specified by:
createCommand
in classAbstractForker
-
doStart
Description copied from class:AbstractLifeCycle
Method to override to start the lifecycle- Overrides:
doStart
in classAbstractForker
- 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
- Specified by:
redeployWebApp
in classAbstractForker
- Throws:
Exception
-