inception icon indicating copy to clipboard operation
inception copied to clipboard

Generate constants files for string keys

Open reckart opened this issue 2 years ago • 0 comments

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

reckart avatar Jun 30 '23 19:06 reckart