kokuwaio / esh-constants-maven-plugin

A Maven plugin that generates a Java constants class from the content of the ESH-INF folder. Very useful for e.g. OpenHAB binding development.
Apache License 2.0
4 stars 2 forks source link

Split generated files in two #9

Closed dmfs closed 2 years ago

dmfs commented 2 years ago

With this commit the plugin generates two files:

This way, the generated Strings can be used in non-OpenHab environments reducing redundancy and risk of typing errors.

To support this, the plugin now expects two distinct class name properties called esh-constants.openhabClassName and esh-constants.stringsClassName

In addtion the following changes were made to improve maintainability:

dmfs commented 2 years ago

I forgot to update the README.md. Should be ok now.