GCS下载助手

public class GCSDownloaderHelper
extends Object

java.lang.Object
com.android.tradefed.build.gcs.GCSDownloaderHelper


GCS 存储桶的下载程序,负责缓存和解析全局配置。

概括

公共构造函数

GCSDownloaderHelper ()

公共方法

void fetchTestResource (File destFile, String gsPath)

从 GS 路径获取资源。

File fetchTestResource (String gsPath)

从 GS 路径获取资源。

公共构造函数

GCS下载助手

public GCSDownloaderHelper ()

公共方法

获取测试资源

public void fetchTestResource (File destFile, 
                String gsPath)

从 GS 路径获取资源。

参数
destFile File :指向检索到的资源的ERROR(/File)

gsPath String : 资源所在路径。例如:gs://bucket/path/file

投掷
com.android.tradefed.build.BuildRetrievalError
BuildRetrievalError

获取测试资源

public File fetchTestResource (String gsPath)

从 GS 路径获取资源。

参数
gsPath String : 资源所在路径。例如:gs://bucket/path/file

退货
File ERROR(/File)指向检索到的资源。

投掷
com.android.tradefed.build.BuildRetrievalError
BuildRetrievalError