diff options
author | Bernard Normier <bernard@zeroc.com> | 2019-10-29 14:11:27 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2021-02-01 16:46:20 -0500 |
commit | 9f22d436c536c18df0e3c434162048490c80191f (patch) | |
tree | da5257cb9435bcdbe3614e4f758e36244cac5ed0 /cpp/src/IceGrid/DescriptorParser.cpp | |
parent | Fixed doxygen warnings and updated configs. (diff) | |
download | ice-9f22d436c536c18df0e3c434162048490c80191f.tar.bz2 ice-9f22d436c536c18df0e3c434162048490c80191f.tar.xz ice-9f22d436c536c18df0e3c434162048490c80191f.zip |
Remove IcePatch2 (#602)
Removed IcePatch2 and the corresponding distrib and patching features in IceGrid and IceGridGUI.
Diffstat (limited to 'cpp/src/IceGrid/DescriptorParser.cpp')
-rw-r--r-- | cpp/src/IceGrid/DescriptorParser.cpp | 45 |
1 files changed, 3 insertions, 42 deletions
diff --git a/cpp/src/IceGrid/DescriptorParser.cpp b/cpp/src/IceGrid/DescriptorParser.cpp index e7467acda1a..b86f8cbb775 100644 --- a/cpp/src/IceGrid/DescriptorParser.cpp +++ b/cpp/src/IceGrid/DescriptorParser.cpp @@ -4,7 +4,6 @@ #include <Ice/Ice.h> #include <IceXML/Parser.h> -#include <IcePatch2Lib/Util.h> #include <IceGrid/Admin.h> #include <IceGrid/DescriptorParser.h> #include <IceGrid/DescriptorBuilder.h> @@ -70,7 +69,6 @@ private: bool _inAdapter; bool _inReplicaGroup; bool _inDbEnv; - bool _inDistrib; }; } @@ -407,24 +405,6 @@ DescriptorHandler::startElement(const string& name, const IceXML::Attributes& at } _currentCommunicator->addAllocatable(attributes); } - else if(name == "distrib") - { - if(!_currentApplication.get() || - ((_currentNode.get() || _currentTemplate.get()) && !_currentServer.get()) || - _currentServer.get() != _currentCommunicator) - { - error("the <distrib> element can only be a child of an <application>, <server> or <icebox> element"); - } - if(!_currentServer.get()) - { - _currentApplication->addDistribution(attributes); - } - else - { - _currentServer->addDistribution(attributes); - } - _inDistrib = true; - } else if(name == "dbenv") { if(!_currentCommunicator) @@ -450,7 +430,7 @@ DescriptorHandler::startElement(const string& name, const IceXML::Attributes& at } _currentCommunicator->addDbEnvProperty(attributes); } - else if(name == "description" || name == "option" || name == "env" || name == "directory") + else if(name == "description" || name == "option" || name == "env") { // // Nothing to do. @@ -648,21 +628,6 @@ DescriptorHandler::endElement(const string& name, int line, int column) } _currentServer->addEnv(elementValue()); } - else if(name == "directory") - { - if(!_inDistrib) - { - error("the <directory> element can only be a child of a <distrib> element"); - } - if(!_currentServer.get()) - { - _currentApplication->addDistributionDirectory(elementValue()); - } - else - { - _currentServer->addDistributionDirectory(elementValue()); - } - } else if(name == "adapter") { _inAdapter = false; @@ -676,10 +641,6 @@ DescriptorHandler::endElement(const string& name, int line, int column) { _inDbEnv = false; } - else if(name == "distrib") - { - _inDistrib = false; - } } catch(const exception& ex) { @@ -857,7 +818,7 @@ DescriptorParser::parseDescriptor(const string& descriptor, const Ice::CommunicatorPtr& communicator, const IceGrid::AdminPrx& admin) { - string filename = IcePatch2Internal::simplify(descriptor); + string filename = simplify(descriptor); DescriptorHandler handler(filename, communicator); handler.setAdmin(admin); handler.setVariables(variables, targets); @@ -868,7 +829,7 @@ DescriptorParser::parseDescriptor(const string& descriptor, ApplicationDescriptor DescriptorParser::parseDescriptor(const string& descriptor, const Ice::CommunicatorPtr& communicator) { - string filename = IcePatch2Internal::simplify(descriptor); + string filename = simplify(descriptor); DescriptorHandler handler(filename, communicator); IceXML::Parser::parse(filename, handler); return handler.getApplicationDescriptor(); |