Class SingleImageBuildConfiguration
- java.lang.Object
-
- nl.lexemmens.podman.config.image.AbstractImageBuildConfiguration
-
- nl.lexemmens.podman.config.image.single.SingleImageBuildConfiguration
-
public class SingleImageBuildConfiguration extends AbstractImageBuildConfiguration
Holds the configuration for a single image
-
-
Field Summary
-
Fields inherited from class nl.lexemmens.podman.config.image.AbstractImageBuildConfiguration
containerFile, containerFileDir, createLatestTag, DEFAULT_CONTAINERFILE, format, labels, layers, mavenProjectVersion, MULTISTAGE_CONTAINERFILE_REGEX, noCache, outputDirectory, pull, pullAlways, squash, squashAll, tags, tagWithMavenProjectVersion, valid
-
-
Constructor Summary
Constructors Constructor Description SingleImageBuildConfiguration()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathgetSourceContainerFileDir()Returns the directory containing the original raw Containerfilevoidvalidate(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log, boolean failOnMissingContainerfile)Validates this class by giving all null properties a default value.-
Methods inherited from class nl.lexemmens.podman.config.image.AbstractImageBuildConfiguration
determineBuildStages, getAllTags, getFormat, getLabels, getLayers, getMultistageContainerfilePattern, getOutputDirectory, getPull, getPullAlways, getSquash, getSquashAll, getTargetContainerFile, isContainerFileEmpty, isCreateLatestTag, isMultistageContainerFile, isNoCache, isValid, setContainerFile, setContainerFileDir, setCreateLatestTag, setFormat, setLabels, setLayers, setNoCache, setPull, setPullAlways, setSquash, setSquashAll, setTags, setTagWithMavenProjectVersion, validate
-
-
-
-
Method Detail
-
validate
public void validate(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log, boolean failOnMissingContainerfile) throws org.apache.maven.plugin.MojoExecutionExceptionValidates this class by giving all null properties a default value.- Parameters:
project- The MavenProject used to derive some of the default values from.log- Access to Maven's log system for writing errorsfailOnMissingContainerfile- Whether an exception should be thrown if no Containerfile is found- Throws:
org.apache.maven.plugin.MojoExecutionException- In case there is no Containerfile at the specified source location or the Containerfile is empty
-
-