public class AdoptOpenJDKInstaller
extends hudson.tools.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
|
| Constructor and Description |
|---|
AdoptOpenJDKInstaller(String id) |
| Modifier and Type | Method and Description |
|---|---|
protected hudson.FilePath |
findPullUpDirectory(hudson.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.
|
hudson.FilePath |
performInstallation(hudson.tools.ToolInstallation tool,
hudson.model.Node node,
hudson.model.TaskListener log) |
public final String id
@DataBoundConstructor public AdoptOpenJDKInstaller(String id)
public hudson.FilePath performInstallation(hudson.tools.ToolInstallation tool,
hudson.model.Node node,
hudson.model.TaskListener log)
throws IOException,
InterruptedException
performInstallation in class hudson.tools.ToolInstallerIOExceptionInterruptedExceptionprotected hudson.FilePath findPullUpDirectory(hudson.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
http://archive.apache.org/dist/ant/binaries/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–2019. All rights reserved.