public static class AssemblyConfiguration.AssemblyConfigurationBuilder extends Object
Modifier and Type | Method and Description |
---|---|
AssemblyConfiguration |
build() |
AssemblyConfiguration.AssemblyConfigurationBuilder |
excludeFinalOutputArtifact(boolean excludeFinalOutputArtifact)
By default, the project's final artifact will be included in the assembly, set this flag to true in case the
artifact should be excluded from the assembly.
|
AssemblyConfiguration.AssemblyConfigurationBuilder |
exportTargetDir(Boolean exportTargetDir)
Whether the target directory should be exported as a volume.
|
AssemblyConfiguration.AssemblyConfigurationBuilder |
inline(Assembly inline)
Assembly defined inline in the pom.xml
|
AssemblyConfiguration.AssemblyConfigurationBuilder |
mode(AssemblyMode mode)
Mode how the assembled files should be collected.
|
AssemblyConfiguration.AssemblyConfigurationBuilder |
modeString(String modeString) |
AssemblyConfiguration.AssemblyConfigurationBuilder |
name(String name)
Assembly name, which is maven by default.
|
AssemblyConfiguration.AssemblyConfigurationBuilder |
permissions(AssemblyConfiguration.PermissionMode permissions)
Permission of the files to add.
|
AssemblyConfiguration.AssemblyConfigurationBuilder |
permissionsString(String permissionsString) |
AssemblyConfiguration.AssemblyConfigurationBuilder |
targetDir(String targetDir)
Directory under which the files and artifacts contained in the assembly will be copied within the container.
|
AssemblyConfiguration.AssemblyConfigurationBuilder |
tarLongFileMode(String tarLongFileMode)
Sets the TarArchiver behaviour on file paths with more than 100 characters length.
|
String |
toString() |
AssemblyConfiguration.AssemblyConfigurationBuilder |
user(String user)
User and/or group under which the files should be added.
|
public AssemblyConfiguration.AssemblyConfigurationBuilder permissionsString(String permissionsString)
public AssemblyConfiguration.AssemblyConfigurationBuilder modeString(String modeString)
public AssemblyConfiguration.AssemblyConfigurationBuilder name(String name)
If an external Dockerfile is used then this name is also the relative directory which contains the assembly files.
this
.public AssemblyConfiguration.AssemblyConfigurationBuilder targetDir(String targetDir)
The default value for this is /<assembly name>
, so /maven
if name is not set
to a different value.
this
.public AssemblyConfiguration.AssemblyConfigurationBuilder exportTargetDir(Boolean exportTargetDir)
this
.public AssemblyConfiguration.AssemblyConfigurationBuilder excludeFinalOutputArtifact(boolean excludeFinalOutputArtifact)
excludeFinalOutputArtifact
- set if artifact must be excluded from the assembly.this
.public AssemblyConfiguration.AssemblyConfigurationBuilder permissions(AssemblyConfiguration.PermissionMode permissions)
this
.public AssemblyConfiguration.AssemblyConfigurationBuilder mode(AssemblyMode mode)
this
.public AssemblyConfiguration.AssemblyConfigurationBuilder user(String user)
It has the general format user[:group[:run-user]]. The user and group can be given either as numeric user and group-id or as names. The group id is optional.
If a third part is given, then the build changes to user root before changing the ownerships, changes the ownerships and then change to user run-user which is then used for the final command to execute.
this
.public AssemblyConfiguration.AssemblyConfigurationBuilder tarLongFileMode(String tarLongFileMode)
Valid values are: "warn"(default), "fail", "truncate", "gnu", "posix", "posix_warn" or "omit".
this
.public AssemblyConfiguration.AssemblyConfigurationBuilder inline(Assembly inline)
this
.public AssemblyConfiguration build()
Copyright © 2021. All rights reserved.