Class ExplodedWarDeployer
java.lang.Object
io.github.rajendarreddyj.tomcat.deploy.ExplodedWarDeployer
Deploys exploded WAR directories to Tomcat webapps.
- Since:
- 1.0.0
- Author:
- rajendarreddyj
-
Constructor Summary
ConstructorsConstructorDescriptionExplodedWarDeployer(Log log) Creates a new ExplodedWarDeployer with the given logger. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeploy(DeployableConfiguration config) Deploys the webapp to the configured location.voidredeploy(DeployableConfiguration config) Redeploys the webapp (remove and recreate).voidsyncChanges(DeployableConfiguration config, Path changedFile) Synchronizes changed files from source to deployed webapp.
-
Constructor Details
-
ExplodedWarDeployer
Creates a new ExplodedWarDeployer with the given logger.- Parameters:
log- the Maven logger
-
-
Method Details
-
deploy
Deploys the webapp to the configured location.- Parameters:
config- Deployment configuration- Throws:
IOException- if deployment fails
-
redeploy
Redeploys the webapp (remove and recreate).- Parameters:
config- Deployment configuration- Throws:
IOException- if redeployment fails
-
syncChanges
Synchronizes changed files from source to deployed webapp. Used for hot deployment.- Parameters:
config- Deployment configurationchangedFile- the file that changed- Throws:
IOException- if sync fails
-