|
escaping ${ } in xml descriptors
Due to an unfortunate collision between our internal variable syntax and Ice variable syntax, I'm faced with 'needing' to have a config param in an IcePack server xml descriptor of the form "${Server}/path". This of course fails, as IcePack tries to interpret it as an Ice variable.
A search of the forums and a look at the docs didn't shed any light - is it possible to escape the ${ and } notation so that the string gets passed through to the app? I've tried several 'obvious' candidates, but anything that succeeds in getting the variable ignored by IcePack gets passed through literally, so the escape characters are still present.
I've also tried defining a new variable with a *value* of "${Server}", and then letting IcePack expand it, but that appears to eval to null before my app gets to it.
Is my only option to change my internal variable syntax to avoid the collision?
Using Ice 2.0, and this problem is with a Java server - haven't tried C++, although I don't imagine it'll be different..
Last edited by dwk : 04-01-2005 at 02:02 PM.
Reason: more detail
|