File tree Expand file tree Collapse file tree 7 files changed +25
-10
lines changed
src/main/java/indi/somebottle Expand file tree Collapse file tree 7 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ mkdir -p $OUTPUT_DIR
88
99# Maven Profiles
1010
11- for p in java11 java16 java17 java21; do
11+ for p in java8 java11 java16 java17 java21; do
1212 # Skip tests
1313 mvn clean package -f pom.multiple.xml -DskipTests -P$p
1414 cp target/PotatoPeeler* java* .jar $OUTPUT_DIR
Original file line number Diff line number Diff line change 33 <modelVersion >4.0.0</modelVersion >
44 <groupId >indi.somebottle</groupId >
55 <artifactId >potatopeeler</artifactId >
6- <version >1.0.0 </version >
6+ <version >1.0.1 </version >
77 <build >
88 <plugins >
99 <plugin >
3737 </plugins >
3838 </build >
3939 <profiles >
40+ <profile >
41+ <id >java8</id >
42+ <properties >
43+ <maven .compiler.target>1.8</maven .compiler.target>
44+ <maven .compiler.source>1.8</maven .compiler.source>
45+ <javaVersion >8</javaVersion >
46+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
47+ </properties >
48+ </profile >
4049 <profile >
4150 <id >java11</id >
4251 <properties >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<project xmlns =" http://maven.apache.org/POM/4.0.0"
3- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4- xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
55 <modelVersion >4.0.0</modelVersion >
66
77 <groupId >indi.somebottle</groupId >
88 <artifactId >potatopeeler</artifactId >
9- <version >1.0.0 </version >
9+ <version >1.0.1 </version >
1010
1111 <dependencies >
1212 <dependency >
2828 </dependencies >
2929
3030 <profiles >
31+ <profile >
32+ <id >java8</id >
33+ <properties >
34+ <maven .compiler.source>1.8</maven .compiler.source>
35+ <maven .compiler.target>1.8</maven .compiler.target>
36+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
37+ <javaVersion >8</javaVersion >
38+ </properties >
39+ </profile >
3140 <profile >
3241 <id >java11</id >
3342 <properties >
9099 <configuration >
91100 <transformers >
92101 <transformer
93- implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
102+ implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
94103 <mainClass >indi.somebottle.Main</mainClass >
95104 </transformer >
96105 </transformers >
Original file line number Diff line number Diff line change 66
77 <groupId >indi.somebottle</groupId >
88 <artifactId >potatopeeler</artifactId >
9- <version >1.0.0 </version >
9+ <version >1.0.1 </version >
1010
1111 <properties >
1212 <maven .compiler.source>21</maven .compiler.source>
Original file line number Diff line number Diff line change 1111public class LoggerFormatter extends Formatter {
1212 private static final SimpleDateFormat dateFormatter = new SimpleDateFormat ("[yyyy-MM-dd HH:mm:ss]" );
1313
14- // TODO:待测试:Logger 格式化不输出中文字符
1514 @ Override
1615 public String format (LogRecord record ) {
1716 StringBuilder sb = new StringBuilder ("[PotatoPeeler] " );
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ public class ArgsUtils {
4545 * @throws IOException 文件读取失败时抛出;文件没有提供任何参数时也会抛出
4646 */
4747 public static String [] readArgsFromFile (String filePath ) throws IOException {
48- // TODO: 待测试是否能正常工作
4948 Path argFilePath = Paths .get (filePath );
5049 byte [] allBytes = Files .readAllBytes (argFilePath );
5150 String [] argList = new String (allBytes ).split ("\\ s+" );
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ public class TimeUtils {
1717 // 上次运行的时间
1818 private static long lastRunTime = 0 ;
1919
20- // TODO: 测试在 Java 8 API 下是否能正常工作
2120 static {
2221 if (Files .exists (timeRecordFilePath )) {
2322 try {
You can’t perform that action at this time.
0 commit comments