public class AssemblyConfiguration extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AssemblyConfiguration.AssemblyConfigurationBuilder |
static class |
AssemblyConfiguration.PermissionMode |
Constructor and Description |
---|
AssemblyConfiguration() |
AssemblyConfiguration(String name,
String targetDir,
Boolean exportTargetDir,
boolean excludeFinalOutputArtifact,
AssemblyConfiguration.PermissionMode permissions,
AssemblyMode mode,
String user,
String tarLongFileMode,
Assembly inline) |
Modifier and Type | Method and Description |
---|---|
static AssemblyConfiguration.AssemblyConfigurationBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Boolean |
getExportTargetDir()
Whether the target directory should be exported as a volume.
|
Assembly |
getInline()
Assembly defined inline in the pom.xml
|
AssemblyMode |
getMode() |
String |
getModeRaw() |
String |
getName()
Assembly name, which is maven by default.
|
AssemblyConfiguration.PermissionMode |
getPermissions() |
String |
getPermissionsRaw() |
String |
getTargetDir()
Directory under which the files and artifacts contained in the assembly will be copied within the container.
|
String |
getTarLongFileMode()
Sets the TarArchiver behaviour on file paths with more than 100 characters length.
|
String |
getUser()
User and/or group under which the files should be added.
|
int |
hashCode() |
boolean |
isExcludeFinalOutputArtifact()
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 |
toBuilder() |
public AssemblyConfiguration(String name, String targetDir, Boolean exportTargetDir, boolean excludeFinalOutputArtifact, AssemblyConfiguration.PermissionMode permissions, AssemblyMode mode, String user, String tarLongFileMode, Assembly inline)
public AssemblyConfiguration()
public AssemblyMode getMode()
public String getModeRaw()
public AssemblyConfiguration.PermissionMode getPermissions()
public String getPermissionsRaw()
public static AssemblyConfiguration.AssemblyConfigurationBuilder builder()
public AssemblyConfiguration.AssemblyConfigurationBuilder toBuilder()
public String getName()
If an external Dockerfile is used then this name is also the relative directory which contains the assembly files.
public String getTargetDir()
The default value for this is /<assembly name>
, so /maven
if name is not set
to a different value.
public Boolean getExportTargetDir()
public boolean isExcludeFinalOutputArtifact()
public String getUser()
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.
public String getTarLongFileMode()
Valid values are: "warn"(default), "fail", "truncate", "gnu", "posix", "posix_warn" or "omit".
public Assembly getInline()
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.