Class JettyRunTask

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class JettyRunTask
    extends org.apache.tools.ant.Task
    Ant task for running a Jetty server.
    • Field Summary

      • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      JettyRunTask()  
    • Constructor Detail

      • JettyRunTask

        public JettyRunTask()
    • Method Detail

      • addWebApp

        public void addWebApp​(AntWebAppContext webapp)
        Creates a new WebApp Ant object.
        Parameters:
        webapp - the webapp context
      • addConnectors

        public void addConnectors​(Connectors connectors)
        Adds a new Ant's connector tag object if it have not been created yet.
        Parameters:
        connectors - the connectors
      • addLoginServices

        public void addLoginServices​(LoginServices services)
      • addSystemProperties

        public void addSystemProperties​(SystemProperties systemProperties)
      • addContextHandlers

        public void addContextHandlers​(ContextHandlers handlers)
      • 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 - if unable to build
      • getStopPort

        public int getStopPort()
      • setStopPort

        public void setStopPort​(int stopPort)
      • getStopKey

        public java.lang.String getStopKey()
      • setStopKey

        public void setStopKey​(java.lang.String stopKey)
      • isDaemon

        public boolean isDaemon()
        Returns:
        the daemon
      • setDaemon

        public void setDaemon​(boolean daemon)
        Parameters:
        daemon - the daemon to set
      • getScanIntervalSeconds

        public int getScanIntervalSeconds()
      • setScanIntervalSeconds

        public void setScanIntervalSeconds​(int secs)