public class JDKInstaller extends ToolInstaller
| Modifier and Type | Class and Description |
|---|---|
static class |
JDKInstaller.CPU
CPU type.
|
static class |
JDKInstaller.DescriptorImpl |
static interface |
JDKInstaller.FileSystem
Abstraction of the file system to perform JDK installation.
|
static class |
JDKInstaller.JDKFamily |
static class |
JDKInstaller.JDKFamilyList |
static class |
JDKInstaller.JDKFile |
static class |
JDKInstaller.JDKList
JDK list.
|
static class |
JDKInstaller.JDKRelease |
static class |
JDKInstaller.Platform
Supported platform.
|
static class |
JDKInstaller.Preference |
ToolInstaller.ToolInstallerEntry, ToolInstaller.ToolInstallerListExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
boolean |
acceptLicense
We 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.
|
String |
id
The release ID that Sun assigns to each JDK, such as "jdk-6u13-oth-JPR@CDS-CDS_Developer"
|
tool| Constructor and Description |
|---|
JDKInstaller(String id,
boolean acceptLicense) |
| Modifier and Type | Method and Description |
|---|---|
JDKInstaller.DescriptorImpl |
getDescriptor()
Gets the descriptor for this instance.
|
void |
install(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.
|
URL |
locate(TaskListener log,
JDKInstaller.Platform platform,
JDKInstaller.CPU cpu)
Performs a license click through and obtains the one-time URL for downloading bits.
|
FilePath |
performInstallation(ToolInstallation tool,
Node node,
TaskListener log)
Ensure that the configured tool is really installed.
|
appliesTo, getLabel, preferredLocation, setToolpublic final String id
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
public final boolean acceptLicense
@DataBoundConstructor public JDKInstaller(String id, boolean acceptLicense)
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException
ToolInstallerToolInstaller.appliesTo(Node) are true.performInstallation in class ToolInstallertool - the tool being installednode - the computer on which to install the toollog - any status messages produced by the installation go hereToolInstaller.preferredLocation(hudson.tools.ToolInstallation, hudson.model.Node)IOException - if installation failsInterruptedException - if communication with a slave is interruptedpublic void install(Launcher launcher, JDKInstaller.Platform p, JDKInstaller.FileSystem fs, TaskListener log, String expectedLocation, String jdkBundle) throws IOException, InterruptedException
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 by locate(TaskListener, Platform, CPU) call.)IOExceptionInterruptedExceptionpublic URL locate(TaskListener log, JDKInstaller.Platform platform, JDKInstaller.CPU cpu) throws IOException
IOExceptionpublic JDKInstaller.DescriptorImpl getDescriptor()
Describable
Descriptor is a singleton for every concrete Describable
implementation, so if a.getClass() == b.getClass() then by default
a.getDescriptor() == b.getDescriptor() as well.
(In rare cases a single implementation class may be used for instances with distinct descriptors.)
getDescriptor in interface Describable<ToolInstaller>getDescriptor in class ToolInstallerCopyright © 2019. All rights reserved.