Skip to content

Commit 2006add

Browse files
committed
remove test.log, correct README.md and version info in Copyright.fxml
1 parent 6d7612b commit 2006add

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

.idea/compiler.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+22-19
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ AssignMark是一个针对于浙江省新赋分模式的赋分程序,本程序
2020
| -e | \ | 导出赋分表模板到当前路径 |
2121
| -h | \ | 打印帮助 |
2222

23-
使用举例:
24-
在当前文件夹路径框双击,输入`cmd`,将会跳出命令行界面,在安装完Java后,输入
23+
使用举例:
24+
在当前文件夹路径框双击,输入`cmd`,将会跳出命令行界面,在安装完Java后,输入
2525

2626
```shell
2727
> java -jar AssignMark.jar -A 赋分表.xlsx -I 分数表.xlsx -O 导出.xlsx
2828
```
2929

30-
3130
2. 图形化界面
3231
无参启动,即双击打开,按"开始赋分"上方的导出按钮导出模板赋分表到jar所在路径中,仔细阅读填写后,按文件夹按钮,选择正确的文件,按"开始赋分"。
3332
按左下角版权按钮来打开"关于"窗口。
@@ -49,29 +48,33 @@ AssignMark是一个针对于浙江省新赋分模式的赋分程序,本程序
4948
## 快速上手
5049

5150
```java
52-
String atPath = ... // 赋分表路径
53-
String mtPath = ... // 分数表路径
54-
String outPath = ... // 输出路径
55-
AMEventHandler handler = (event, msg) -> {
56-
if (event.getIndex() < AMEvent.ERR_AT_NOT_FOUND.getIndex())
57-
System.out.println(event.toString());
58-
else
59-
System.err.println(event.toString());
60-
if (msg != null)
61-
System.err.println(msg);
62-
};
63-
try {
64-
new AMFactory(atPath, mtPath, handler, outPath).work();
65-
} catch (Exception e) {
66-
// 自行处理
51+
class Test {
52+
public static void main(String[] args) {
53+
String atPath = ... // 赋分表路径
54+
String mtPath = ... // 分数表路径
55+
String outPath = ... // 输出路径
56+
AMEventHandler handler = (event, msg) -> {
57+
if (event.getIndex() < AMEvent.ERR_AT_NOT_FOUND.getIndex())
58+
System.out.println(event.toString());
59+
else
60+
System.err.println(event.toString());
61+
if (msg != null)
62+
System.err.println(msg);
63+
};
64+
try {
65+
new AMFactory(atPath, mtPath, handler, outPath).work();
66+
} catch (Exception e) {
67+
// 自行处理
68+
}
69+
}
6770
}
6871
```
6972

7073
## 未来计划
7174

7275
- [x] 完成图形化界面`(1.1.8)`
7376
- [ ] 使用每个分数都对应的赋分表赋分
74-
- [ ] 写Java17的版本`(1.1.17)`
77+
- [ ] 写Java17的版本`(1.?.17)`
7578

7679
## 版权声明
7780

src/main/resources/amres/gui/Copyright.fxml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
AnchorPane.topAnchor="198.0"/>
2828
<Hyperlink layoutX="329.0" layoutY="204.0" onAction="#licenseClicked" prefWidth="318.0"
2929
text="./blob/maven/LICENSE OF USED LIBS" AnchorPane.leftAnchor="329.0" AnchorPane.rightAnchor="40.0"/>
30-
<Label layoutX="40.0" layoutY="250.0" text="当前版本:1.1.8" AnchorPane.topAnchor="251.0"/>
30+
<Label layoutX="40.0" layoutY="250.0" text="当前版本:1.1.8.3" AnchorPane.topAnchor="251.0"/>
3131
<Label fx:id="errLabel" layoutX="40.0" layoutY="291.0" text="不支持在浏览器中打开!请自行打开" textFill="RED" visible="false"/>
3232
</AnchorPane>

src/main/resources/log4j2.xml

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
<Console name="CustomConsole" target="SYSTEM_OUT">
88
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%-5level] - %msg%n"/>
99
</Console>
10-
<File name="File" fileName="test.log">
11-
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
12-
</File>
1310
</Appenders>
1411
<Loggers>
1512
<Logger name="cn.rocket.assaignmark.cmd.Main" level="INFO" additivity="false">

0 commit comments

Comments
 (0)