summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-06-28 10:44:16 -0230
committerDwayne Boone <dwayne@zeroc.com>2007-06-28 10:44:16 -0230
commitcbbf4257660b62fdbc5d629ea4bae4444dda8974 (patch)
treedda658f62a2b687b3fa2fdbb5215a8c53a86c399 /cpp
parenthttp://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=2278 - slice2html crash (diff)
parentFix bug in makeprops.py where noCmdLine attributes were being ignored. (diff)
downloadice-cbbf4257660b62fdbc5d629ea4bae4444dda8974.tar.bz2
ice-cbbf4257660b62fdbc5d629ea4bae4444dda8974.tar.xz
ice-cbbf4257660b62fdbc5d629ea4bae4444dda8974.zip
Merge branch 'master' of ssh://cvs.zeroc.com/home/git/ice
Diffstat (limited to 'cpp')
-rw-r--r--cpp/config/makeprops.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/config/makeprops.py b/cpp/config/makeprops.py
index d721948a7da..c66ead4588a 100644
--- a/cpp/config/makeprops.py
+++ b/cpp/config/makeprops.py
@@ -226,10 +226,10 @@ class PropertyHandler(ContentHandler):
"""Needs to be overridden in derived class"""
pass
- def handleNewSection(self, sectionName, cmdLine):
+ def handleNewSection(self, sectionName, noCmdLine):
self.currentSection = sectionName
self.sectionPropertyCount = 0
- if cmdLine == "true":
+ if noCmdLine == "false":
self.cmdLineOptions.append(sectionName)
self.sections.append(sectionName)
self.newSection()
@@ -256,7 +256,7 @@ class PropertyHandler(ContentHandler):
return
if name == "section":
- noCmdLine = attrs.get("noCmdLine", None)
+ noCmdLine = attrs.get("noCmdLine", "false")
self.handleNewSection(attrs.get("name"), noCmdLine)
elif name == "property":
@@ -335,7 +335,7 @@ class CppPropertyHandler(PropertyHandler):
self.cppFile.write("\nconst char* IceInternal::%(classname)s::clPropNames[] =\n" % \
{'classname' : self.className})
self.cppFile.write("{\n")
- for s in self.sections:
+ for s in self.cmdLineOptions:
self.cppFile.write(" \"%s\",\n" % s)
self.cppFile.write(" 0\n")
self.cppFile.write("};\n\n")
@@ -403,7 +403,7 @@ class JavaPropertyHandler(PropertyHandler):
self.srcFile.write("\n public static final String clPropNames[] =\n" % \
{'classname' : self.className})
self.srcFile.write(" {\n")
- for s in self.sections:
+ for s in self.cmdLineOptions:
self.srcFile.write(" \"%s\",\n" % s)
self.srcFile.write(" null\n")
self.srcFile.write(" };\n\n")
@@ -472,7 +472,7 @@ class CSPropertyHandler(PropertyHandler):
self.srcFile.write(" public static string[] clPropNames =\n" % \
{'classname' : self.className})
self.srcFile.write(" {\n")
- for s in self.sections:
+ for s in self.cmdLineOptions:
self.srcFile.write(" \"%s\",\n" % s)
self.srcFile.write(" null\n")
self.srcFile.write(" };\n")