Skip to content

yaml to java properties and back, simplistic and restricted

License

Notifications You must be signed in to change notification settings

mgurov/yaml2props

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yaml2p

Simplistic converter between yaml and java properties files.

Installation

Download the latest binary from the github releases archive

from sources (GO)

go get github.com/mgurov/yaml2props/cmd/yaml2p
go install github.com/mgurov/yaml2props/cmd/yaml2p

Not supported

  • multiline string values
  • yaml collection of the type key: [val1, val2, val3]
  • scalars at a node with children, e.g. the following java property file won't be mapped to yaml:
level1.level2=blah
level1.level2.level3=fooe

Quirks

Original key order isn't preserved, alphabetical sorting is used for the consistency sake

Related art

Java code https://stackoverflow.com/questions/49207935/how-to-convert-yml-to-properties-with-a-gradle-task

Java/maven style https://github.com/redlab/yaml-props

About

yaml to java properties and back, simplistic and restricted

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages