Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-01-2005
dwk dwk is offline
Registered User
 
 
Join Date: Apr 2004
Posts: 2
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
Reply With Quote
  #2 (permalink)  
Old 04-01-2005
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,534
It's currently not possible to escape variables We will fix this ASAP. Sorry for the inconvenience.

Benoit.
Reply With Quote
  #3 (permalink)  
Old 04-04-2005
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,534
See here for a patch to fix this problem! You should now be able to escape ${Server} with $${Server}.

Benoit.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any xml schema definition for IceGrid descriptors ? rc_hz Help Center 1 11-23-2006 03:33 AM
Icegrid descriptors and dbenv xdm Help Center 1 06-20-2006 05:02 PM
Patch for escaping deployment descriptor variables benoit Patches 0 04-04-2005 05:26 PM


All times are GMT -4. The time now is 09:48 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.