Package org.starcoin.serde.format.utils
Class SerdeGenJavaUtils
- java.lang.Object
-
- org.starcoin.serde.format.utils.SerdeGenJavaUtils
-
public class SerdeGenJavaUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSerdeGenJavaUtils.SerdeFormatFile
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SERDEGEN_PATHstatic StringDEFAULT_TEMP_YAML_FILE_EXTENSIONstatic StringWITH_RUNTIMES_BCSstatic StringWITH_RUNTIMES_SERDE
-
Constructor Summary
Constructors Constructor Description SerdeGenJavaUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidprocessSerdeFormatFiles(String workingDirectory, String serdegenPath, String language, List<SerdeGenJavaUtils.SerdeFormatFile> serdeFormatFiles, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String tempYamlFileExtension, Integer onlyRetainDependenciesOfLast)static intwaitForSerdegenProcess(String workingDirectory, String serdegenPath, String language, String moduleName, String withRuntimesOrEmpty, String targetSrcDir, String yamlFilePath)
-
-
-
Field Detail
-
WITH_RUNTIMES_SERDE
public static final String WITH_RUNTIMES_SERDE
- See Also:
- Constant Field Values
-
WITH_RUNTIMES_BCS
public static final String WITH_RUNTIMES_BCS
- See Also:
- Constant Field Values
-
DEFAULT_TEMP_YAML_FILE_EXTENSION
public static final String DEFAULT_TEMP_YAML_FILE_EXTENSION
- See Also:
- Constant Field Values
-
DEFAULT_SERDEGEN_PATH
public static final String DEFAULT_SERDEGEN_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
processSerdeFormatFiles
public static void processSerdeFormatFiles(String workingDirectory, String serdegenPath, String language, List<SerdeGenJavaUtils.SerdeFormatFile> serdeFormatFiles, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String tempYamlFileExtension, Integer onlyRetainDependenciesOfLast)
-
waitForSerdegenProcess
public static int waitForSerdegenProcess(String workingDirectory, String serdegenPath, String language, String moduleName, String withRuntimesOrEmpty, String targetSrcDir, String yamlFilePath)
- Parameters:
language- Java, Go, etc...moduleName- module name. For java it is package name
-
-