Class DeployTask

  • All Implemented Interfaces:
    Cloneable

    public class DeployTask
    extends AbstractCatalinaCommandTask
    Ant task that implements the /deploy command, supported by the Tomcat manager application.
    Since:
    4.1
    Author:
    Craig R. McClanahan
    • Field Detail

      • config

        protected String config
        URL of the context configuration file for this application, if any.
      • localWar

        protected String localWar
        URL of the server local web application archive (WAR) file to be deployed.
      • tag

        protected String tag
        Tag to associate with this to be deployed webapp.
      • update

        protected boolean update
        Update existing webapps.
      • war

        protected String war
        URL of the web application archive (WAR) file to be deployed.
    • Constructor Detail

      • DeployTask

        public DeployTask()
    • Method Detail

      • getConfig

        public String getConfig()
      • setConfig

        public void setConfig​(String config)
      • getLocalWar

        public String getLocalWar()
      • setLocalWar

        public void setLocalWar​(String localWar)
      • getTag

        public String getTag()
      • setTag

        public void setTag​(String tag)
      • getUpdate

        public boolean getUpdate()
      • setUpdate

        public void setUpdate​(boolean update)
      • getWar

        public String getWar()
      • setWar

        public void setWar​(String war)
      • execute

        public void execute()
                     throws org.apache.tools.ant.BuildException
        Execute the requested operation.
        Overrides:
        execute in class AbstractCatalinaTask
        Throws:
        org.apache.tools.ant.BuildException - if an error occurs