執行檔
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
這個容器包含一組在執行階段執行時所需的檔案相關資訊。這個物件應透過
DefaultInfo 傳遞,向建構系統說明規則產生的輸出內容所需的執行檔。
詳情請參閱執行檔指南。
成員
empty_filenames
depset runfiles.empty_filenames
傳回要建立的空白檔案名稱。
檔案
depset runfiles.files
Returns the set of runfiles as files.
合併
runfiles runfiles.merge(other)
傳回新的 Runfiles 物件,其中包含這個物件和引數的所有內容。
注意:如要合併多個 Runfiles 物件,請使用 merge_all(),而不是在迴圈中呼叫 merge。這樣可避免建構深層 deps 結構,以免建構作業失敗。
參數
| 參數 |
說明 |
other
|
必要
要併入這個物件的 runfiles 物件。
|
merge_all
runfiles runfiles.merge_all(other)
傳回新的 Runfiles 物件,其中包含這個物件和引數中 Runfiles 物件的所有內容。
參數
| 參數 |
說明 |
other
|
runfiles 的序列;必要 要合併至這個物件的 runfiles 物件序列。 |
root_symlinks
depset runfiles.root_symlinks
Returns the set of root symlinks.
符號連結
depset runfiles.symlinks
傳回符號連結集。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-12-12 (世界標準時間)。
[[["容易理解","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-12-12 (世界標準時間)。"],[],[]]