1
0

refactor: refactor enum migration but not finished

This commit is contained in:
2026-01-26 22:52:56 +08:00
parent c68bdce37b
commit 9cb4d50f22
22 changed files with 669 additions and 54 deletions

View File

@@ -137,7 +137,11 @@ public class CommonHelper {
private static Path getRootDirectoryPath() throws Exception {
String rootDir = System.getenv("ENUMS_MIGRATION_ROOT");
return Paths.get(rootDir);
if (rootDir == null) {
throw new RuntimeException("Can not find essential environment variable ENUMS_MIGRATION_ROOT");
} else {
return Paths.get(rootDir);
}
}
public static class InputFilePair {