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
    • 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()
        Default constructor.
    • Method Detail

      • getConfig

        public java.lang.String getConfig()
        Get the context configuration file URL.
        Returns:
        Context configuration file URL
      • setConfig

        public void setConfig​(java.lang.String config)
        Set the context configuration file URL.
        Parameters:
        config - Context configuration file URL
      • getLocalWar

        public java.lang.String getLocalWar()
        Get the local WAR file path.
        Returns:
        Local WAR file path
      • setLocalWar

        public void setLocalWar​(java.lang.String localWar)
        Set the local WAR file path.
        Parameters:
        localWar - Local WAR file path
      • getTag

        public java.lang.String getTag()
        Get the deployment tag.
        Returns:
        Deployment tag
      • setTag

        public void setTag​(java.lang.String tag)
        Set the deployment tag.
        Parameters:
        tag - Deployment tag
      • getUpdate

        public boolean getUpdate()
        Check if existing webapps should be updated.
        Returns:
        true if existing webapps should be updated
      • setUpdate

        public void setUpdate​(boolean update)
        Set whether to update existing webapps.
        Parameters:
        update - true to update existing webapps
      • getWar

        public java.lang.String getWar()
        Get the WAR file URL.
        Returns:
        WAR file URL
      • setWar

        public void setWar​(java.lang.String war)
        Set the WAR file URL.
        Parameters:
        war - WAR file URL
      • 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