org.mortbay.jetty.ant
Class JettyRunTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.mortbay.jetty.ant.JettyRunTask
- All Implemented Interfaces:
- java.lang.Cloneable
public class JettyRunTask
- extends org.apache.tools.ant.Task
Ant task for running a Jetty server.
- Author:
- Jakub Pawlowicz
Fields inherited from class org.apache.tools.ant.Task |
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JettyRunTask
public JettyRunTask()
addWebApp
public void addWebApp(WebApp webapp)
- Creates a new
WebApp
Ant object.
addConnectors
public void addConnectors(Connectors connectors)
- Adds a new Ant's connector tag object if it have not been created yet.
addUserRealms
public void addUserRealms(java.lang.Object o)
- Deprecated.
addLoginServices
public void addLoginServices(LoginServices services)
addSystemProperties
public void addSystemProperties(SystemProperties systemProperties)
getTempDirectory
public java.io.File getTempDirectory()
setTempDirectory
public void setTempDirectory(java.io.File tempDirectory)
getJettyXml
public java.io.File getJettyXml()
setJettyXml
public void setJettyXml(java.io.File jettyXml)
setRequestLog
public void setRequestLog(java.lang.String className)
getRequestLog
public java.lang.String getRequestLog()
setJettyPort
public void setJettyPort(int jettyPort)
- Sets the port Jetty uses for the default connector.
- Parameters:
jettyPort
- The port Jetty will use for the default connector
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Executes this Ant task. The build flow is being stopped until Jetty
server stops.
- Overrides:
execute
in class org.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.