public class ToolDownloader extends Object
| Constructor and Description |
|---|
ToolDownloader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureWrapperDownload(String wrapperPath)
Ensures the mergebase.jar wrapper has been downloaded and is available to the build step.
|
static long |
streamToFile(InputStream in,
File file,
boolean doClose) |
static long |
streamToFile(InputStream in,
File file,
boolean doClose,
boolean doAppend) |
static long |
streamToOut(InputStream in,
OutputStream out,
boolean doClose) |
public static void ensureWrapperDownload(String wrapperPath) throws MergebaseException, IOException
wrapperPath - The folder path where the tool downloader will check and download the tool
if it's not present.MergebaseExceptionIOExceptionpublic static long streamToFile(InputStream in, File file, boolean doClose) throws IOException
IOExceptionpublic static long streamToFile(InputStream in, File file, boolean doClose, boolean doAppend) throws IOException
IOExceptionpublic static long streamToOut(InputStream in, OutputStream out, boolean doClose) throws IOException
IOExceptionCopyright © 2016–2022. All rights reserved.