Class CloudManagerDispatcherConfigMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- io.wcm.devops.conga.plugins.aem.maven.CloudManagerDispatcherConfigMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="cloudmanager-dispatcher-config", threadSafe=true) public final class CloudManagerDispatcherConfigMojo extends org.apache.maven.plugin.AbstractMojo
Builds an Dispatcher configuration ZIP file dedicated for deployment via Adobe Cloud Manager for the given environment and node(s). Only nodes with roleaem-dispatcher-cloud
are respected.
-
-
Constructor Summary
Constructors Constructor Description CloudManagerDispatcherConfigMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
protected List<File>
getEnvironmentDir()
Get directory of the selected environment.protected List<File>
getNodeDirs(File environmentDir)
Get matching node directories from environment.protected File
getTargetDir()
protected boolean
isEnvironmentConfiguredExplicitely(String environment)
Checks if the given environment was configured explicitly in plugin configuration.
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
getTargetDir
protected File getTargetDir()
- Returns:
- Target directory
-
getEnvironmentDir
protected List<File> getEnvironmentDir() throws org.apache.maven.plugin.MojoExecutionException
Get directory of the selected environment. It has to be exactly one matching environment.- Returns:
- Environment directory
- Throws:
org.apache.maven.plugin.MojoExecutionException
- if no or multiple directories found
-
isEnvironmentConfiguredExplicitely
protected boolean isEnvironmentConfiguredExplicitely(String environment)
Checks if the given environment was configured explicitly in plugin configuration.- Parameters:
environment
- Environment name- Returns:
- true if configured explicitly
-
-