Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

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

Open
cdelg opened this issue Jan 28, 2017 · 1 comment

Comments

@cdelg
Copy link

cdelg commented Jan 28, 2017

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
Copy link
Author

cdelg commented Jan 29, 2017

×The expected path file is with double backslash.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant