public class ArchiveService extends Object
Constructor and Description |
---|
ArchiveService(DockerAssemblyManager dockerAssemblyManager,
Logger log) |
Modifier and Type | Method and Description |
---|---|
File |
createChangedFilesArchive(List<AssemblyFiles.Entry> entries,
File assemblyDir,
String imageName,
MojoParameters mojoParameters)
Create an tar archive from a set of assembly files.
|
File |
createDockerBuildArchive(ImageConfiguration imageConfig,
MojoParameters params)
Create the tar file container the source for building an image.
|
File |
createDockerBuildArchive(ImageConfiguration imageConfig,
MojoParameters params,
ArchiverCustomizer customizer)
Create the tar file container the source for building an image.
|
AssemblyFiles |
getAssemblyFiles(ImageConfiguration imageConfig,
MojoParameters mojoParameters)
Get a mapping of original to destination files which a covered by an assembly.
|
public ArchiveService(DockerAssemblyManager dockerAssemblyManager, Logger log)
public File createDockerBuildArchive(ImageConfiguration imageConfig, MojoParameters params) throws org.apache.maven.plugin.MojoExecutionException
imageConfig
- the image configurationparams
- mojo params for the projectorg.apache.maven.plugin.MojoExecutionException
- if during creation of the tar an error occurs.public File createDockerBuildArchive(ImageConfiguration imageConfig, MojoParameters params, ArchiverCustomizer customizer) throws org.apache.maven.plugin.MojoExecutionException
imageConfig
- the image configurationparams
- mojo params for the projectcustomizer
- final customizer to be applied to the tar before being generatedorg.apache.maven.plugin.MojoExecutionException
- if during creation of the tar an error occurs.public AssemblyFiles getAssemblyFiles(ImageConfiguration imageConfig, MojoParameters mojoParameters) throws org.apache.maven.plugin.MojoExecutionException
imageConfig
- image config for which to get files. The build- and assembly configuration in this image
config must not be null.mojoParameters
- needed for tracking the assemblyorg.apache.maven.plugin.MojoExecutionException
public File createChangedFilesArchive(List<AssemblyFiles.Entry> entries, File assemblyDir, String imageName, MojoParameters mojoParameters) throws org.apache.maven.plugin.MojoExecutionException
entries
- changed files. List must not be empty or nullimageName
- image's namemojoParameters
- org.apache.maven.plugin.MojoExecutionException
Copyright © 2019. All rights reserved.