osgi.enroute.bundles
osgi.enroute.bundles copied to clipboard
osgi.enroute.configurer.simple.provider: failed to process @{resource:} macro on Windows
Input
A simple configuration such as:
[ { "service.pid" : "xxx" "prop": "@{resource;configuration/file.txt}" } ]
Problem
lead to a Json parse exception on Windows because the macro is replaced by a path without escape characters: C:\User\cde... \configuration\file.txt (expected path: C:\User\cde\... \configuration\file.txt).
note
Also there is a difference between the documentation of the resource macro and what is currently being done:
- documentation -> @{resource:
} (colon) - code -> @{resource;
} (semi-colon)
×The expected path file is with double backslash.