chore(build): 更新构建脚本并优化操作历史日志

- 修改 runClient任务组和描述信息
- 添加多个 2D 模型测试任务 (test2DModelLayerPanel, testModelRenderLightingTest 等)
- 替换 System.out.println 日志为 SLF4J Logger 实现
- 移除冗余的日志打印和注释代码
- 统一使用占位符方式记录日志信息
- 注册和注销操作类型时增加日志跟踪
- 完善操作监听器添加与移除的日志提示
-优化异常处理中的错误日志输出
This commit is contained in:
tzdwindows 7
2025-10-22 22:33:15 +08:00
parent fec5de1276
commit 2278c5d0c7
3 changed files with 74 additions and 130 deletions

View File

@@ -191,8 +191,8 @@ application {
}
task runClient(type: JavaExec) {
group = "application"
description = "运行 com.axis.innovators.box.Main"
group = "run-toolboxProgram"
description = "执行工具箱程序"
classpath = sourceSets.main.runtimeClasspath
mainClass = "com.axis.innovators.box.Main"
jvmArgs = [
@@ -200,3 +200,43 @@ task runClient(type: JavaExec) {
"-Djava.system.class.loader=com.axis.innovators.box.plugins.BoxClassLoader"
]
}
task test2DModelLayerPanel(type: JavaExec) {
group = "test-model"
description = "运行 2D Model Layer Panel 测试"
classpath = sourceSets.main.runtimeClasspath
mainClass = "com.chuangzhou.vivid2D.test.ModelLayerPanelTest"
jvmArgs = [
"-Dfile.encoding=UTF-8"
]
}
task testModelRenderLightingTest(type: JavaExec) {
group = "test-model"
description = "运行 2D Model 高亮灯光测试"
classpath = sourceSets.main.runtimeClasspath
mainClass = "com.chuangzhou.vivid2D.test.ModelRenderLightingTest"
jvmArgs = [
"-Dfile.encoding=UTF-8"
]
}
task testModelTest(type: JavaExec) {
group = "test-model"
description = "运行 2D Model 保存和完整性测试"
classpath = sourceSets.main.runtimeClasspath
mainClass = "com.chuangzhou.vivid2D.test.ModelTest"
jvmArgs = [
"-Dfile.encoding=UTF-8"
]
}
task testModelTest2(type: JavaExec) {
group = "test-model"
description = "运行 2D Model 物理基准测试"
classpath = sourceSets.main.runtimeClasspath
mainClass = "com.chuangzhou.vivid2D.test.ModelTest2"
jvmArgs = [
"-Dfile.encoding=UTF-8"
]
}