Class ExplodedWarDeployer

java.lang.Object
io.github.rajendarreddyj.tomcat.deploy.ExplodedWarDeployer

public class ExplodedWarDeployer extends Object
Deploys exploded WAR directories to Tomcat webapps.
Since:
1.0.0
Author:
rajendarreddyj
  • Constructor Details

    • ExplodedWarDeployer

      public ExplodedWarDeployer(Log log)
      Creates a new ExplodedWarDeployer with the given logger.
      Parameters:
      log - the Maven logger
  • Method Details

    • deploy

      public void deploy(DeployableConfiguration config) throws IOException
      Deploys the webapp to the configured location.
      Parameters:
      config - Deployment configuration
      Throws:
      IOException - if deployment fails
    • redeploy

      public void redeploy(DeployableConfiguration config) throws IOException
      Redeploys the webapp (remove and recreate).
      Parameters:
      config - Deployment configuration
      Throws:
      IOException - if redeployment fails
    • syncChanges

      public void syncChanges(DeployableConfiguration config, Path changedFile) throws IOException
      Synchronizes changed files from source to deployed webapp. Used for hot deployment.
      Parameters:
      config - Deployment configuration
      changedFile - the file that changed
      Throws:
      IOException - if sync fails