public class AdoptOpenJDKInstaller extends ToolInstaller
Modifier and Type | Class and Description |
---|---|
static class |
AdoptOpenJDKInstaller.AdoptOpenJDKFamily |
static class |
AdoptOpenJDKInstaller.AdoptOpenJDKFamilyList |
static class |
AdoptOpenJDKInstaller.AdoptOpenJDKFile |
static class |
AdoptOpenJDKInstaller.AdoptOpenJDKList |
static class |
AdoptOpenJDKInstaller.AdoptOpenJDKRelease |
static class |
AdoptOpenJDKInstaller.CPU
Supported CPU architecture
|
static class |
AdoptOpenJDKInstaller.DescriptorImpl |
static class |
AdoptOpenJDKInstaller.Platform
Supported platform
|
ToolInstaller.ToolInstallerEntry, ToolInstaller.ToolInstallerList
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
String |
id
Eclipse Temurin release id
|
tool
Constructor and Description |
---|
AdoptOpenJDKInstaller(String id) |
Modifier and Type | Method and Description |
---|---|
protected FilePath |
findPullUpDirectory(FilePath root,
AdoptOpenJDKInstaller.Platform platform)
Often an archive contains an extra top-level directory that's unnecessary when extracted on the disk
into the expected location.
|
FilePath |
performInstallation(ToolInstallation tool,
Node node,
TaskListener log) |
appliesTo, getDescriptor, getLabel, preferredLocation, setTool
public final String id
@DataBoundConstructor public AdoptOpenJDKInstaller(String id)
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException
performInstallation
in class ToolInstaller
IOException
InterruptedException
protected FilePath findPullUpDirectory(FilePath root, AdoptOpenJDKInstaller.Platform platform) throws IOException, InterruptedException
The caller will "pull up" the discovered real root by throw away the intermediate directory, so that the user-configured "tool home" directory contains the right files.
The default implementation applies some heuristics to auto-determine if the pull up is necessary. This should work for typical archive files.
root
- The directory that contains the extracted archive. This directory contains nothing but the
extracted archive. For example, if the user installed
jakarta-ant-1.1.zip, this directory would contain
a single directory "jakarta-ant".platform
- The platform for which to find pull up directory for.root
that contains the meat. In the above example,
root.child("jakarta-ant")
should be returned. If there's no directory to pull up, return null.IOException
- Signals that an I/O exception of some sort has occurred.InterruptedException
- Thrown when a thread is interrupted.Copyright © 2016–2022. All rights reserved.