summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ServerI.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-11-03 13:08:43 -0330
committerDwayne Boone <dwayne@zeroc.com>2008-11-03 13:08:43 -0330
commit353a27bc9dd5fcc19561f0b6b35a44d4728230fd (patch)
treef02c18314b5ee08b6fcc62c85df6deab09118e38 /cpp/src/IceGrid/ServerI.cpp
parentBug 3385 - java class must match file name (diff)
downloadice-353a27bc9dd5fcc19561f0b6b35a44d4728230fd.tar.bz2
ice-353a27bc9dd5fcc19561f0b6b35a44d4728230fd.tar.xz
ice-353a27bc9dd5fcc19561f0b6b35a44d4728230fd.zip
Bug 3529 - check ice version before esacping properties
Diffstat (limited to 'cpp/src/IceGrid/ServerI.cpp')
-rw-r--r--cpp/src/IceGrid/ServerI.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/ServerI.cpp b/cpp/src/IceGrid/ServerI.cpp
index 81a85c97157..1ebd9e84ba3 100644
--- a/cpp/src/IceGrid/ServerI.cpp
+++ b/cpp/src/IceGrid/ServerI.cpp
@@ -2127,6 +2127,12 @@ ServerI::updateImpl(const InternalServerDescriptorPtr& descriptor)
// Create the configuration files, remove the old ones.
//
{
+ //
+ // We do not want to esapce the properties if the Ice version is
+ // previous to Ice 3.3.
+ //
+ bool escapeProperties = (_desc->iceVersion == 0 || _desc->iceVersion > 30300);
+
Ice::StringSeq knownFiles;
for(PropertyDescriptorSeqDict::const_iterator p = properties.begin(); p != properties.end(); ++p)
{
@@ -2147,7 +2153,14 @@ ServerI::updateImpl(const InternalServerDescriptorPtr& descriptor)
}
else
{
- configfile << escapeProperty(r->name) << "=" << escapeProperty(r->value) << endl;
+ if(escapeProperties)
+ {
+ configfile << escapeProperty(r->name) << "=" << escapeProperty(r->value) << endl;
+ }
+ else
+ {
+ configfile << r->name << "=" << r->value << endl;
+ }
}
}
configfile.close();