Package hudson.tools
Class JDKInstaller
java.lang.Object
hudson.tools.ToolInstaller
hudson.tools.JDKInstaller
- All Implemented Interfaces:
ExtensionPoint,Describable<ToolInstaller>
Install JDKs from java.sun.com.
- Since:
- 1.305
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCPU type.static final classstatic interfaceAbstraction of the file system to perform JDK installation.static final classstatic final classstatic final classstatic final classJDK list.static final classstatic enumSupported platform.static enumNested classes/interfaces inherited from class hudson.tools.ToolInstaller
ToolInstaller.ToolInstallerEntry, ToolInstaller.ToolInstallerListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanWe require that the user accepts the license by clicking a checkbox, to make up for the part that we auto-accept cds.sun.com license click through.final StringThe release ID that Sun assigns to each JDK, such as "jdk-6u13-oth-JPR@CDS-CDS_Developer"Fields inherited from class hudson.tools.ToolInstaller
tool -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinstall(Launcher launcher, JDKInstaller.Platform p, JDKInstaller.FileSystem fs, TaskListener log, String expectedLocation, String jdkBundle) Performs the JDK installation to a system, provided that the bundle was already downloaded.locate(TaskListener log, JDKInstaller.Platform platform, JDKInstaller.CPU cpu) Performs a license click through and obtains the one-time URL for downloading bits.performInstallation(ToolInstallation tool, Node node, TaskListener log) Methods inherited from class hudson.tools.ToolInstaller
appliesTo, getLabel, preferredLocation, setTool
-
Field Details
-
id
The release ID that Sun assigns to each JDK, such as "jdk-6u13-oth-JPR@CDS-CDS_Developer"This ID can be seen in the "ProductRef" query parameter of the download page, like https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u13-oth-JPR@CDS-CDS_Developer
-
acceptLicense
public final boolean acceptLicenseWe require that the user accepts the license by clicking a checkbox, to make up for the part that we auto-accept cds.sun.com license click through.
-
-
Constructor Details
-
JDKInstaller
-
-
Method Details
-
performInstallation
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException - Specified by:
performInstallationin classToolInstaller- Throws:
IOExceptionInterruptedException
-
install
public void install(Launcher launcher, JDKInstaller.Platform p, JDKInstaller.FileSystem fs, TaskListener log, String expectedLocation, String jdkBundle) throws IOException, InterruptedException Performs the JDK installation to a system, provided that the bundle was already downloaded.- Parameters:
launcher- Used to launch processes on the system.p- Platform of the system. This determines how the bundle is installed.fs- Abstraction of the file system manipulation on this system.log- Where the output from the installation will be written.expectedLocation- Path to install JDK to. Must be absolute and in the native file system notation.jdkBundle- Path to the installed JDK bundle. (The bundle to download can be determined bylocate(TaskListener, Platform, CPU)call.)- Throws:
IOExceptionInterruptedException
-
locate
public URL locate(TaskListener log, JDKInstaller.Platform platform, JDKInstaller.CPU cpu) throws IOException Performs a license click through and obtains the one-time URL for downloading bits.- Throws:
IOException
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<ToolInstaller>- Overrides:
getDescriptorin classToolInstaller
-