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
  • Field Details

    • 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 Details

    • DeployTask

      public DeployTask()
      Default constructor.
  • Method Details

    • getConfig

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

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

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

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

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

      public void setTag(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 String getWar()
      Get the WAR file URL.
      Returns:
      WAR file URL
    • setWar

      public void setWar(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