Module io.inverno.tool.buildtools
Package io.inverno.tool.buildtools
Enum Class PackageApplicationTask.PackageType
java.lang.Object
java.lang.Enum<PackageApplicationTask.PackageType>
io.inverno.tool.buildtools.PackageApplicationTask.PackageType
- All Implemented Interfaces:
Serializable
,Comparable<PackageApplicationTask.PackageType>
,Constable
- Enclosing interface:
PackageApplicationTask
public static enum PackageApplicationTask.PackageType
extends Enum<PackageApplicationTask.PackageType>
The types of package that the task can generate.
These types are platform specific and requires the task to run on corresponding operating systems.
- Since:
- 1.4
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPackages the application as a Debian package.Packages the application as a Apple disk image package.Packages the application as Windows executable.Packages the application as a Microsoft Installer file.Packages the application as a Package package.Packages the application as a RedHat Package Manager package. -
Method Summary
Modifier and TypeMethodDescriptionfromFormat
(String format) Returns the package type corresponding to the specified file format.Returns the file format of file extension corresponding to the package type.Returns the enum constant of this class with the specified name.static PackageApplicationTask.PackageType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXE
Packages the application as Windows executable.
-
MSI
Packages the application as a Microsoft Installer file.
-
RPM
Packages the application as a RedHat Package Manager package.
-
DEB
Packages the application as a Debian package.
-
PKG
Packages the application as a Package package.
-
DMG
Packages the application as a Apple disk image package.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFormat
Returns the file format of file extension corresponding to the package type.
- Returns:
- a fileformat
-
fromFormat
Returns the package type corresponding to the specified file format.
- Parameters:
format
- a file format- Returns:
- a package type
- Throws:
IllegalArgumentException
- if the specified file format does correspond to any supported package type
-