Skip to content
/ prop2yml Public

This tool helps to to migrate from .properties to .yml files

Notifications You must be signed in to change notification settings

dim4o/prop2yml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

.properties to .yml converter

Converting files by hand is boring. This tool helps to to migrate from .properties to .yml files and and vice versa.

Table of Contents

  1. Python guide
  2. Java guide (COMING SOON)

Python guide

  1. .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.

  2. .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.

Java guide

About

This tool helps to to migrate from .properties to .yml files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages