Class Jdk
java.lang.Object
com.atlassian.bamboo.configuration.Jdk
This class is a POJO holding the information about a system JDK.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
CAPABILITY_JDK_TYPE
- See Also:
-
CAPABILITY_TYPE_NAME
- See Also:
-
CAPABILITY_JDK_PREFIX
- See Also:
-
-
Constructor Details
-
Jdk
-
-
Method Details
-
isValid
public boolean isValid()Does this object reference a valid JDK?- Returns:
- Does the homeDirectory contain bin/java and lib/tools.jar?
-
isAJdk
public boolean isAJdk()Does the given homeDirectory reference a JDK home?- Returns:
- true iff it contains a lib/tools.jar
-
discoverDefaultJdk
For some reason, the system's JAVA_HOME is sometimes the Jdk's Jre directory.If that's the case, we return the parent dir.
- Returns:
- The default system JDK
-
toString
-
getLabel
-
getHomeDirectory
-