外观
finBuild
原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793947143/FIN+5.3.1+finBuild 中文整理基于 FIN 5.3.1
finBuild
FIN 构建工具
classes
| BuildArgs | |
| BuildFinArgs | |
| BuildFinPod | |
| FileOverride | |
| FileOverrideListMap | |
| FileOverridePlus |
BuildArgs
抽象类 BuildArgs : AbstractMain
Constructors
| make |
Fields
| dumpEnv | |
| makeScript | |
| script | |
| targets | |
| v |
Methods
| parseArgs | |
| run | 使用指定的参数运行脚本。 |
| usage | 转储使用情况,包括此脚本的所有已发布目标。 |
插槽详情
dumpEnv
@Opt { help="脚本环境的调试转储" } Bool dumpEnv
make
new make(Method makeScript)
makeScript
const BuildArgs- BuildScript makeScript
parseArgs
虚拟重写 Bool parseArgs(Str[] toks)
run
虚拟重写 Int 运行()
使用指定的参数运行脚本。成功时返回 0,失败时返回 -1。
script
BuildScript? 脚本
targets
@Arg Str[]? 目标
usage
虚拟重写 Int usage(OutStream out := Env.cur().out())
转储使用情况,包括这个脚本的所有已发布目标。返回非零值。改编自 build::BuildScript.usage
v
@Opt { help="详细调试日志" } Bool v
BuildFinArgs
抽象类 BuildFinArgs : BuildArgs
Constructors
| make |
Fields
| mavenDepPath | |
| mavenIgnoredDeps | |
| out | |
| version |
插槽详情
make
new make(Method makeScript)
mavenDepPath
@Opt { help=... } Uri? mavenDepPath
mavenIgnoredDeps
@Opt { help=... } Str[]? mavenIgnoredDeps
out
@Opt { help="输出 pod 文件的目录"; aliases=["o"] } File? out
version
@Opt { help="构建 pod 的版本" } Str? version
BuildFinPod
抽象类 BuildFinPod : BuildPod
Constructors
| make |
Fields
| mavenDepPath | Maven 依赖项的暂存位置。 |
| mavenIgnoredDeps | 要忽略并且不添加到 /lib/java/ext/ 的 Maven 依赖列表 |
| nodeDirs |
Methods
| clean | |
| compile | |
| fan | |
| full | |
| installDeps | |
| maven | 使用 Maven 下载 Java 依赖并将它们复制到 /lib/java/ext 文件夹中 |
| node | |
| onCompileFan | |
| resCopyMap | 定义要复制到 Pod 中的资源文件。 |
| targets | |
| test |
插槽详情
clean
@Target { help=... } 虚拟 重写 Void clean()
compile
@Target { help="编译所有内容并构建 pod" } virtual override Void compile()
fan
@Target { help=... } 虚拟 无效 fan()
full
@Target { help="运行清理、编译和测试" } virtual override Void full()
installDeps
@Target { help="安装 npm 所需的依赖" } virtual Void installDeps()
make
new make(BuildFinArgs? args := null)
maven
@Target { help="通过 Maven 收集 Java 依赖" } virtual Void maven()
使用 Maven 下载 Java 依赖并将它们复制到 /lib/java/ext 文件夹中
mavenDepPath
Uri mavenDepPath := target/dependency/
Maven 依赖项的暂存位置。
mavenIgnoredDeps
Str[] mavenIgnoredDeps := Str[,]
要忽略并且不添加到 /lib/java/ext/ 的 Maven 依赖列表
node
@Target { help="使用 npm build 编译节点文件" } virtual Void node()
nodeDirs
Uri[] nodeDirs := Uri[,]
onCompileFan
虚拟重写 Void onCompileFan(CompilerInput ci)
resCopyMap
虚拟 Uri:Uri resCopyMap(File baseDir)
定义要复制到 Pod 的资源文件。键是实际的文件,而值映射到它们的位置。如果被覆盖,请确保将你的键/值添加到 super.resCopyMap 中,以免破坏现有功能。
targets
虚拟重写 TargetMethod[] targets()
test
@Target { help="通过 fant 运行 pod 单元测试" } virtual override Void test()
FileOverride
const class 文件覆盖 : 文件
Constructors
| makeNew |
Fields
| base | |
| modified |
Methods
| create | |
| delete | |
| deleteOnExit | |
| exists | |
| in | |
| isEmpty | |
| isHidden | |
| list | |
| listDirs | |
| listFiles | |
| mmap | |
| moveInto | |
| moveTo | |
| normalize | |
| open | |
| osPath | |
| out | |
| parent | |
| plus | |
| rename | |
| size | |
| store | |
| walk |
插槽详情
base
const 文件 基础
create
虚拟重写 文件 创建()
delete
虚拟重写 空类型 删除()
deleteOnExit
虚拟重写 文件 deleteOnExit()
exists
虚拟重写 Bool exists()
in
虚拟重写 InStream in(Int? bufferSize := 4096)
isEmpty
虚拟重写 Bool isEmpty()
isHidden
虚拟重写 Bool isHidden()
list
虚拟重写 File[] list(Regex? pattern := null)
listDirs
虚拟重写 文件[] 列出目录(正则表达式? 模式 := null)
listFiles
虚拟重写 File[] listFiles(Regex? pattern := null)
makeNew
new makeNew(File base, Uri uri := base.uri())
mmap
虚拟重写 Buf mmap(Str 模式 := "rw", Int 位置 := 0, Int? 大小 := null)
modified
虚拟重写 DateTime? modified
moveInto
虚拟覆盖 File moveInto(File dir)
moveTo
虚拟覆盖 文件 moveTo(文件 到)
normalize
虚拟重写 文件 normalize()
open
虚拟重写 Buf open(Str mode := "rw")
osPath
虚拟重写 Str? osPath()
out
虚拟重写 OutStream out(Bool append := false, Int? bufferSize := 4096)
parent
虚拟重写 文件? parent()
plus
虚拟重写 文件 plus(Uri 路径, Bool 检查斜杠 := true)
rename
虚拟重写 文件 重命名(Str 新名称)
size
虚拟重写 Int? size()
store
虚拟重写 FileStore store()
walk
虚拟重写 空 walk(文件 c)
FileOverrideListMap
const class FileOverrideListMap : FileOverride
Constructors
| makeNew |
Methods
| list | |
| listDirs | |
| listFiles |
插槽详情
list
虚拟重写 File[] list(Regex? pattern := null)
listDirs
虚拟重写 文件[] 列出目录(正则表达式? 模式 := null)
listFiles
虚拟重写 File[] listFiles(Regex? pattern := null)
makeNew
new makeNew(File base, File- File fn)
FileOverridePlus
const 类 FileOverridePlus : FileOverride
Constructors
--- --- makeNew
Methods
--- --- 加
插槽详情
makeNew
new makeNew(File base, Uri, Bool- File? fn)
plus
虚拟重写 文件 plus(Uri 路径, Bool 检查斜杠 := true)