CLI tool designed to covert YAML to (Java) .properties.
Sometime, it is required to convert modern YAML formated files to old-style .properties that are still in use. This tool is written on pure C programming language with the usage of libyaml library. Additionally it can visualize processed file using PlantUML library. Whatch the presentation.
Yaml2Prop is tiny and cross-platform utility. You can download binaries from here with choosing appropriate build for your OS. Otherwise, you can compile it your own.
Before do everything, please download CMake 3.11 or higher and any C complier (GCC, MinGW, Clang and so on).
Also, you are required to download sources with all submodules using git or alike utility
cmake . -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
Ready executable will be in bin/ folder
If you are using Visual Studio you can build like this:
cmake . -A x64
cmake --build . --config Release
Ready executable will be in bin/Release folder
Two modes are available. The first one is interactive:
Also, it is possible to use the tool with parameters:
For visualization be shure that jar or your PlantUML is located in the same directory with the executable (file name should be plantuml.jar
). as well as file that is to be presented. Latest version of PlantumUML can be downloaded here. Also, you have to have Java Runtime Environment.
All possible options listed in help page (parameter -h):
Due to the lack of documentation for libyaml, the only source that could be used as a manual was old blog post created in 2011. Fortunately, for PlantUML there is comprehensive documentation.