mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-28 16:22:28 +00:00
perf[protocol]: typescript output path
This commit is contained in:
@@ -55,7 +55,7 @@ public abstract class GenerateTsUtils {
|
||||
}
|
||||
|
||||
public static void init(GenerateOperation generateOperation) {
|
||||
// 如果没有配置路径,则使用默认路径
|
||||
// if not specify output path, then use current default path
|
||||
if (StringUtils.isEmpty(generateOperation.getProtocolPath())) {
|
||||
protocolOutputPath = FileUtils.joinPath(generateOperation.getProtocolPath(), protocolOutputRootPath);
|
||||
} else {
|
||||
@@ -63,8 +63,6 @@ public abstract class GenerateTsUtils {
|
||||
}
|
||||
|
||||
FileUtils.deleteFile(new File(protocolOutputPath));
|
||||
var protocolOutputPathFile = FileUtils.createDirectory(protocolOutputPath);
|
||||
protocolOutputRootPath = protocolOutputPathFile.getName();
|
||||
|
||||
tsSerializerMap = new HashMap<>();
|
||||
tsSerializerMap.put(BooleanSerializer.INSTANCE, new TsBooleanSerializer());
|
||||
@@ -84,6 +82,7 @@ public abstract class GenerateTsUtils {
|
||||
|
||||
public static void clear() {
|
||||
protocolOutputRootPath = null;
|
||||
protocolOutputPath = null;
|
||||
tsSerializerMap = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user