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.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Fileprotected booleanprotected Serverprotected MavenWebAppContextprotected FileFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoStart()Method to override to start the lifecyclestatic StringfileSeparators(String path) booleanisScan()static StringpathSeparators(String path) protected voidvoidsetContainerClassPath(String containerClassPath) voidsetContextXml(String contextXml) voidsetForkWebXml(File forkWebXml) voidsetScan(boolean scan) voidvoidvoidsetWebAppPropsFile(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, setWorkDirMethods 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:AbstractLifeCycleMethod to override to start the lifecycle- Overrides:
doStartin 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:
redeployWebAppin classAbstractForker- Throws:
Exception
-
createCommand
- Specified by:
createCommandin classAbstractForker
-
fileSeparators
-
pathSeparators
-