Tridium N4 控件开发参考手册
原作者:Tridium 公司 翻译:杨超 15 / 332
构建脚本元素 - build.gradle ....................................................................................... 274
Gradle 依赖标志 ........................................................................................................... 274
将 Niagara AX build.xml 转换为 Niagara 4 build.gradle ............................................... 275
映射摘要 ....................................................................................................................... 275
转换实例 ....................................................................................................................... 275
其他模块文件 ....................................................................................................................... 277
模块 include.xml ........................................................................................................... 277
module.palette .............................................................................................................. 277
module.lexicon .............................................................................................................. 278
moduleTest-include.xml ................................................................................................ 278
单模块项目 ........................................................................................................................... 278
项目设置 ....................................................................................................................... 278
项目编译 ....................................................................................................................... 278
多模块项目 ........................................................................................................................... 279
项目设置 ....................................................................................................................... 279
项目建设 ....................................................................................................................... 279
示例脚本脚本 ............................................................................................................... 280
build.gradle (for the project) ........................................................................... 280
vendor.gradle ............................................................................................................. 281
settings.gradle ......................................................................................................... 281
外部库依赖 ........................................................................................................................... 283
项目设置 ....................................................................................................................... 283
部署帮助 ........................................................................................................................... 284
概览....................................................................................................................................... 284
构建脚本 ............................................................................................................................... 284
生成 Bajadocs ....................................................................................................................... 285
生成 JavaScript 文档 ............................................................................................................. 286
帮助侧栏 ............................................................................................................................... 287
目录(TOC) ........................................................................................................................ 288
API ......................................................................................................................................... 288
搜索....................................................................................................................................... 289
Slot-o-matic 自动生成代码插件 ......................................................................................... 290
概览....................................................................................................................................... 290
用法....................................................................................................................................... 290
调用 ............................................................................................................................... 290
Slot-o-matic 选项 .................................................................................................................. 290
强制重新编译 ............................................................................................................... 291
Niagara .................................................................................................................................. 291
常用注意事项 ............................................................................................................... 291
插槽注释 ............................................................................................................................... 294
非类注释 ....................................................................................................................... 294
例子....................................................................................................................................... 298
A simple class with slots ................................................................................................ 298
An enum class ............................................................................................................... 299