public enum Platform extends Enum<Platform>
| Modifier and Type | Field and Description |
|---|---|
String |
binFolder
Choose the folder path suitable bin folder of the bundle.
|
String |
nodeFileName
Choose the file name suitable for the downloaded Node bundle.
|
String |
npmFileName
Choose the file name suitable for the npm bundled with NodeJS.
|
| Modifier and Type | Method and Description |
|---|---|
static Platform |
current() |
boolean |
is(String line) |
static Platform |
of(hudson.model.Node node)
Determines the platform of the given node.
|
static Platform |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Platform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Platform LINUX
public static final Platform WINDOWS
public static final Platform OSX
public final String nodeFileName
public final String npmFileName
public final String binFolder
public static Platform[] values()
for (Platform c : Platform.values()) System.out.println(c);
public static Platform valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean is(String line)
public static Platform of(hudson.model.Node node) throws DetectionFailedException
node - the computer nodeDetectionFailedException - when the current platform node is not supported.public static Platform current() throws DetectionFailedException
DetectionFailedExceptionCopyright © 2016–2017. All rights reserved.