Package io.fabric8.maven.docker.config
Enum AssemblyMode
- java.lang.Object
-
- java.lang.Enum<AssemblyMode>
-
- io.fabric8.maven.docker.config.AssemblyMode
-
- All Implemented Interfaces:
Serializable,Comparable<AssemblyMode>
public enum AssemblyMode extends Enum<AssemblyMode>
Various modes how to add file for the tarball for "docker:build".- Since:
- 18/05/15
- Author:
- roland
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExtension()Get the extension as known by the Maven assemblerbooleanisArchive()static AssemblyModevalueOf(String name)Returns the enum constant of this type with the specified name.static AssemblyMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
dir
public static final AssemblyMode dir
Copy files directly in the directory
-
zip
public static final AssemblyMode zip
Use a ZIP container as intermediate format
-
tar
public static final AssemblyMode tar
Use a TAR container as intermediate format
-
tgz
public static final AssemblyMode tgz
Use a compressed TAR container as intermediate format
-
-
Method Detail
-
values
public static AssemblyMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AssemblyMode c : AssemblyMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AssemblyMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getExtension
public String getExtension()
Get the extension as known by the Maven assembler- Returns:
- extension
-
isArchive
public boolean isArchive()
-
-