osgi.enroute.bundles icon indicating copy to clipboard operation
osgi.enroute.bundles copied to clipboard

osgi.enroute.configurer.simple.provider: failed to process @{resource:} macro on Windows

Open cdelg opened this issue 8 years ago • 1 comments

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)

cdelg avatar Jan 28 '17 00:01 cdelg

×The expected path file is with double backslash.

cdelg avatar Jan 29 '17 22:01 cdelg