public class JettyRunTask
extends org.apache.tools.ant.Task
Modifier and Type | Field and Description |
---|---|
private Connectors |
connectors
List of server connectors.
|
private ContextHandlers |
contextHandlers
List of other contexts to deploy
|
private boolean |
daemon |
private int |
jettyPort
Port Jetty will use for the default connector
|
private java.io.File |
jettyXml
Location of jetty.xml file.
|
private LoginServices |
loginServices
List of login services.
|
private RequestLog |
requestLog
Server request logger object.
|
private int |
scanIntervalSeconds |
private java.lang.String |
stopKey |
private int |
stopPort |
private SystemProperties |
systemProperties
List of system properties to be set.
|
private java.io.File |
tempDirectory
Temporary files directory.
|
private java.util.List<AntWebAppContext> |
webapps
List of web applications to be deployed.
|
Constructor and Description |
---|
JettyRunTask() |
Modifier and Type | Method and Description |
---|---|
void |
addConnectors(Connectors connectors)
Adds a new Ant's connector tag object if it have not been created yet.
|
void |
addContextHandlers(ContextHandlers handlers) |
void |
addLoginServices(LoginServices services) |
void |
addSystemProperties(SystemProperties systemProperties) |
void |
addWebApp(AntWebAppContext webapp)
Creates a new
WebApp Ant object. |
void |
execute()
Executes this Ant task.
|
java.io.File |
getJettyXml() |
java.lang.String |
getRequestLog() |
int |
getScanIntervalSeconds() |
java.lang.String |
getStopKey() |
int |
getStopPort() |
java.io.File |
getTempDirectory() |
boolean |
isDaemon() |
void |
setDaemon(boolean daemon) |
void |
setJettyPort(int jettyPort)
Sets the port Jetty uses for the default connector.
|
void |
setJettyXml(java.io.File jettyXml) |
void |
setRequestLog(java.lang.String className) |
void |
setScanIntervalSeconds(int secs) |
void |
setStopKey(java.lang.String stopKey) |
void |
setStopPort(int stopPort) |
private void |
setSystemProperties()
Sets the system properties.
|
void |
setTempDirectory(java.io.File tempDirectory) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
private int scanIntervalSeconds
private java.io.File tempDirectory
private java.util.List<AntWebAppContext> webapps
private java.io.File jettyXml
private Connectors connectors
private RequestLog requestLog
private LoginServices loginServices
private SystemProperties systemProperties
private ContextHandlers contextHandlers
private int jettyPort
private int stopPort
private java.lang.String stopKey
private boolean daemon
public void addWebApp(AntWebAppContext webapp)
WebApp
Ant object.webapp
- the webapp contextpublic void addConnectors(Connectors connectors)
connectors
- the connectorspublic void addLoginServices(LoginServices services)
public void addSystemProperties(SystemProperties systemProperties)
public void addContextHandlers(ContextHandlers handlers)
public java.io.File getTempDirectory()
public void setTempDirectory(java.io.File tempDirectory)
public java.io.File getJettyXml()
public void setJettyXml(java.io.File jettyXml)
public void setRequestLog(java.lang.String className)
public java.lang.String getRequestLog()
public void setJettyPort(int jettyPort)
jettyPort
- The port Jetty will use for the default connectorpublic void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- if unable to buildpublic int getStopPort()
public void setStopPort(int stopPort)
public java.lang.String getStopKey()
public void setStopKey(java.lang.String stopKey)
public boolean isDaemon()
public void setDaemon(boolean daemon)
daemon
- the daemon to setpublic int getScanIntervalSeconds()
public void setScanIntervalSeconds(int secs)
private void setSystemProperties()