|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.AbstractDescribableImpl<ToolInstallation>
hudson.tools.ToolInstallation
hudson.model.JDK
public final class JDK
Information about JDK installation.
Nested Class Summary | |
---|---|
static class |
JDK.ConverterImpl
|
static class |
JDK.DescriptorImpl
|
Nested classes/interfaces inherited from class hudson.tools.ToolInstallation |
---|
ToolInstallation.ToolConverter |
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
Constructor Summary | |
---|---|
JDK(String name,
String javaHome)
|
|
JDK(String name,
String home,
List<? extends ToolProperty<?>> properties)
|
Method Summary | |
---|---|
void |
buildEnvVars(EnvVars env)
Sets PATH and JAVA_HOME from this JDK. |
void |
buildEnvVars(Map<String,String> env)
Deprecated. as of 1.460. Use buildEnvVars(EnvVars) |
JDK |
forEnvironment(EnvVars environment)
Returns a specialized copy of T for functioning in the given environment. |
JDK |
forNode(Node node,
TaskListener log)
Returns a specialized copy of T for functioning in the given node. |
File |
getBinDir()
Gets the path to the bin directory. |
boolean |
getExists()
Returns true if the executable exists. |
String |
getJavaHome()
Deprecated. as of 1.304 Use ToolInstallation.getHome() |
static boolean |
isDefaultJDKValid(Node n)
Checks if "java" is in PATH on the given node. |
Methods inherited from class hudson.tools.ToolInstallation |
---|
all, getHome, getName, getProperties, readResolve, translate, translate, translateFor |
Methods inherited from class hudson.model.AbstractDescribableImpl |
---|
getDescriptor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDK(String name, String javaHome)
@DataBoundConstructor public JDK(String name, String home, List<? extends ToolProperty<?>> properties)
Method Detail |
---|
public String getJavaHome()
ToolInstallation.getHome()
public File getBinDir()
public boolean getExists()
public void buildEnvVars(Map<String,String> env)
buildEnvVars(EnvVars)
public void buildEnvVars(EnvVars env)
buildEnvVars
in class ToolInstallation
public JDK forNode(Node node, TaskListener log) throws IOException, InterruptedException
NodeSpecific
forNode
in interface NodeSpecific<JDK>
IOException
InterruptedException
public JDK forEnvironment(EnvVars environment)
EnvironmentSpecific
forEnvironment
in interface EnvironmentSpecific<JDK>
public static boolean isDefaultJDKValid(Node n)
If it's not, then the user must specify a configured JDK, so this is often useful for form field validation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |