public class Jdk extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CAPABILITY_JDK_PREFIX |
static String |
CAPABILITY_JDK_TYPE |
static String |
CAPABILITY_TYPE_NAME |
Constructor and Description |
---|
Jdk(String label,
String homeDirectory) |
Modifier and Type | Method and Description |
---|---|
static Jdk |
discoverDefaultJdk()
For some reason, the system's JAVA_HOME is sometimes the Jdk's Jre directory.
|
String |
getHomeDirectory() |
String |
getLabel() |
boolean |
isAJdk()
Does the given homeDirectory reference a JDK home?
|
boolean |
isValid()
Does this object reference a valid JDK?
|
String |
toString() |
public static final String CAPABILITY_JDK_TYPE
public static final String CAPABILITY_TYPE_NAME
public static final String CAPABILITY_JDK_PREFIX
public boolean isValid()
public boolean isAJdk()
@NotNull public static Jdk discoverDefaultJdk()
If that's the case, we return the parent dir.
public String getLabel()
public String getHomeDirectory()
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.