Converting files by hand is boring. This tool helps to to migrate from .properties
to .yml
files and and vice versa.
-
.properties
to.yml
:To convert
.properties
file to.yml
file run:python prop2yml.py <source_file_path.properties> <destination_path.yml>
If the destination path is not specified the converted file will be saved in the current working directory with name:
<source_file_name>.yml
.If the source path is a directory(e.g.
python prop2yml.py /path/to/prop/
) all.properties
files from the subdirectories will be converted recursively.By default all source files will be kept. To remove the source files use the
-rm
options. -
.yml
to.prop
: (COMING SOON) To convert.yml
file to.properties
file run:python yml2prop.py <source_file_path.yml> <destination_path.properties>
If the destination path is not specified the converted file will be saved in the current working directory with name:
<source_file_name>.properties
.
Use -h
or --help
option to show a help message and exit.