inception
inception copied to clipboard
Generate constants files for string keys
Describe the refactoring action At build time, generate Java files from the strings properties files containing constants for the string keys.
It is not yet clear how exactly to do that.
- https://github.com/kklisura/props-to-constants-generator - is unfortunately not compatible with Eclipse (https://stackoverflow.com/a/76356911/2511197)
- https://github.com/robtimus/i18n-maven-plugin - not tried yet
- ... other alternatives?
Expected benefit Have a compiler-checkable way to verify if a string key exists - also facilitate checking if a key is no longer used (in code).