Open issues

Documentation of Scanner Directory is not aligned with actual behavior

Description

The current documentation is not aligned with the actual released version of the confman artifact.
In fact, the documentation at https://ops4j1.jira.com/wiki/display/ops4j/Pax+ConfMan+-+Scanner+-+Dir
states:
"[...] Scans directories for properties files. The scanner will scan the content of the configured directory and for each found properties file (files with .properties or .cfg extension) will be considered as a configuration. [...]"
which is not true, it looks only for .properties files
Moreover it also states:
" [...] The file name without extension will be used as pid. If the scanned directory contains directories then each directory will be considerd as containing factory configurations where directory name is the factory pid and each property file contained in that directory is considered a factory configuration with the pid equal ith file name without extension. [...]"
which is false again. In fact, in case of service factories the user has to create a file name
<servicefactorypid>.configuration
which contains the following mandatory properties
service.pid=<service_ factory_pid>
instances=<the number of instances to create>
keys=<the set of keys to configure for each instances>
<key>.<n>=<value for property "key" of the instance "n">

Actually, I think that the behavior described in the documentation would even more nice to have, is it in the trunk version?

Environment

None

Status

Assignee

Alin Dreghiciu

Reporter

Stefano Lenzi

Labels

None

Affects versions

0.2.2

Priority

Major