Home Help Center

Use of variables in config files

xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
Hello there is any way to use variables inside config files I want to do same thing like this
in my config file
#
#Define base directory
#

OnRez.Basedir=/home/pepone
#
# The IcePack locator proxy.
#
Ice.Default.Locator=IcePack/Locator:default -p 12000

#
# IcePack registry configuration.
#
IcePack.Registry.Client.Endpoints=default -p 12000
IcePack.Registry.Server.Endpoints=default
IcePack.Registry.Internal.Endpoints=default
IcePack.Registry.Admin.Endpoints=default
IcePack.Registry.Data=$(OnRez.Basedir)/DB/icepack/registry

IcePack.Registry.Trace.ServerRegistry=3
IcePack.Registry.Trace.AdapterRegistry=3

#
# IcePack node configuration.
#
IcePack.Node.Name=node
IcePack.Node.Endpoints=default
IcePack.Node.Data=$(OnRez.Basedir)/DB/icepack/node
IcePack.Node.CollocateRegistry=1


Thanks

Comments

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    No, there is no such feature for config files. If you need something like this, I would suggest to write a simple script that can substitute a value for a placeholder in the file. Python, Perl, and any number of other tools should do the job nicely.

    Cheers,

    Michi.
Sign In or Register to comment.