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 |