简体   繁体   中英

Tool for managing and refactoring java .properties files

Is there any tool for managing java .properties files that is able to:

  • rename keys in .properties files along with their usage in .java and .jspx files (something like Eclipse's refactoring)
  • find keys that are used in .java and .jspx files but not present in a .propertis file
  • find keys from .properties files that are not used in .java and .jspx files
  • find duplicit key values?

I have found the bundlizer tool , but were not able to obtain it.

IntelliJ IDEA has a lot of advanced features supporting development with properties files . There's a support for i18n with properties files as well.

There is a standalone tool called i18nBinder which is based on an Apache Ant task. It can generate a Excel (xls) file for your property file folders and write changes within the xls file back to the property files.

It has also the capability to generate a Java source code facade for your property files. If you use such a facade the Java compiler will take care of missing properties.

Unfortunately it will have little use for your legacy code, like hard coded properties within your jsp files :-/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM