執行檔
bookmark_borderbookmark
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
回報問題open_in_new
查看原始碼open_in_new
Nightly
·
8.1
·
8.0
·
7.6
·
7.5
·
7.4
容器,其中包含執行階段執行作業所需的檔案組合相關資訊。這個物件應透過 DefaultInfo 傳遞,以便向建構系統說明規則產生的輸出內容所需的執行檔案。
詳情請參閱runfiles 指南。
成員
empty_filenames
depset runfiles.empty_filenames
傳回要建立的空白檔案名稱。
檔案
depset runfiles.files
以檔案形式傳回一組執行檔。
合併
runfiles runfiles.merge(other)
傳回新的 runfiles 物件,其中包含此物件和引數的所有內容。
注意:如果您有許多要合併的 runfiles 物件,請使用 merge_all()
,而非在迴圈中呼叫 merge
。這樣就能避免建構可能導致建構失敗的深層 depset 結構。
參數
參數 |
說明 |
other
|
必要
要合併至此的 runfiles 物件。
|
merge_all
runfiles runfiles.merge_all(other)
傳回新的 runfiles 物件,其中包含此物件和引數中 runfiles 物件的所有內容。
參數
參數 |
說明 |
other
|
runfiles 的序列;
必要
要合併至此的 runfiles 物件序列。
|
root_symlinks
depset runfiles.root_symlinks
傳回根目錄符號連結集。
符號連結
depset runfiles.symlinks
傳回符號連結集。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-03-24 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-03-24 (世界標準時間)。"],[],[]]