Class DeployTask

  • All Implemented Interfaces:
    java.lang.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 java.lang.String config
        URL of the context configuration file for this application, if any.
      • localWar

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

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

        protected boolean update
        Update existing webapps.
      • war

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

      • DeployTask

        public DeployTask()
    • Method Detail

      • getConfig

        public java.lang.String getConfig()
      • setConfig

        public void setConfig​(java.lang.String config)
      • getLocalWar

        public java.lang.String getLocalWar()
      • setLocalWar

        public void setLocalWar​(java.lang.String localWar)
      • getTag

        public java.lang.String getTag()
      • setTag

        public void setTag​(java.lang.String tag)
      • getUpdate

        public boolean getUpdate()
      • setUpdate

        public void setUpdate​(boolean update)
      • getWar

        public java.lang.String getWar()
      • setWar

        public void setWar​(java.lang.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