Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Runfile
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
一个容器,包含有关运行时执行所需的一组文件的信息。此对象应通过
DefaultInfo 传递,以便告知构建系统相应规则生成的输出所需的 runfile。
如需了解详情,请参阅运行文件指南。
成员
empty_filenames
depset runfiles.empty_filenames
返回要创建的空文件的名称。
文件
depset runfiles.files
以文件形式返回一组 runfile。
合并
runfiles runfiles.merge(other)
返回一个包含此对象和实参的所有内容的新 runfiles 对象。
注意:当您需要合并许多 runfiles 对象时,请使用 merge_all(),而不是在循环中调用 merge。这样可以避免构建可能导致 build 失败的深层 depset 结构。
参数
| 参数 |
说明 |
other
|
必需
要合并到此对象中的 runfiles 对象。
|
merge_all
runfiles runfiles.merge_all(other)
返回一个新的 runfiles 对象,其中包含此对象和实参中 runfiles 对象的所有内容。
参数
root_symlinks
depset runfiles.root_symlinks
返回根符号链接的集合。
符号链接
depset runfiles.symlinks
返回符号链接的集合。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-05-07。
[[["易于理解","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"]],["最后更新时间 (UTC):2026-05-07。"],[],[]]