Package org.eclipse.jetty.maven.plugin
Class JettyForker
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.maven.plugin.AbstractForker
org.eclipse.jetty.maven.plugin.JettyForker
- All Implemented Interfaces:
LifeCycle
JettyForker
Uses quickstart to generate a webapp and forks a process to run it.
-
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 String
protected String
protected File
protected boolean
protected Server
protected MavenWebAppContext
protected File
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 TypeMethodDescriptionvoid
doStart()
Method to override to start the lifecyclestatic String
fileSeparators
(String path) boolean
isScan()
static String
pathSeparators
(String path) protected void
void
setContainerClassPath
(String containerClassPath) void
setContextXml
(String contextXml) void
setForkWebXml
(File forkWebXml) void
setScan
(boolean scan) void
void
void
setWebAppPropsFile
(File webAppPropsFile) 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
-
forkWebXml
-
server
-
webApp
-
containerClassPath
-
webAppPropsFile
-
contextXml
-
scan
protected boolean scan
-
-
Constructor Details
-
JettyForker
public JettyForker()
-
-
Method Details
-
isScan
public boolean isScan()- Returns:
- the scan
-
setScan
public void setScan(boolean scan) - Parameters:
scan
- if true, the forked child will scan for changes
-
getWebAppPropsFile
-
setWebAppPropsFile
-
getForkWebXml
-
setForkWebXml
-
getContextXml
-
setContextXml
-
getContainerClassPath
-
setContainerClassPath
-
setWebApp
-
getServer
-
setServer
-
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
-
createCommand
- Specified by:
createCommand
in classAbstractForker
-
fileSeparators
-
pathSeparators
-