Improved binding directory structure example (#1046)

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
pull/1047/head
Hilbrand Bouwkamp 2019-09-12 23:44:02 +02:00 committed by Jerome Luckenbach
parent 7c1b4d1b4f
commit 54d7590f99
1 changed files with 16 additions and 5 deletions

View File

@ -28,16 +28,27 @@ The structure of a binding follows the structure of a typical OSGi bundle projec
```
|- src/main
|------- feature
|---------- feature.xml Your OSGI feature file
|------- java Your Java code
|---------- [...]
|------- tests It's easy to write unit tests and fellow developers will thank you
|---------- [...]
|---------- org/openhab/[...]
|- src/main/resources/ESH-INF
|---- binding
|------- binding.xml Binding name, description, author and other meta data
|---- thing
|------- thing-types.xml One or more xml files with thing descriptions
|-----config Configuration description files when not in things files
|------- *.xml
|---- i18n Your localized binding texts
|------- *_<local>.properties
|---- thing One or more xml files with thing descriptions
|------- *.xml
|- src/test
|------- java It's easy to write unit tests and fellow developers will thank you
|---------- org/openhab/[...]
|------- resources Any resource files used in your unit tests, like test data
|---------- [...]
|- NOTICE The license file
|- pom.xml Build system file: Describe your dependencies here
|- README.md The file describing your binding
```
Every binding needs to define a `binding.xml` file.