I am writing a plugin. I am adding some properties to the config.properties. Is there a naming convention that I should be following?

有帮助吗?

解决方案

While there isn't a set standard, it's best to look at some of the high quality plugins that are available for guidance. Typically you will see them use the following:

grails.plugin.nameofthepluginlowercase.configValue

The rational behind using the grails.plugin.nameoftheplugininlowercase is to ensure there are no collisions between plugins with similar configuration keys. (See here for said explanation)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top