diff options
Diffstat (limited to 'cpp/src/IcePatch/Server.cpp')
-rw-r--r-- | cpp/src/IcePatch/Server.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpp/src/IcePatch/Server.cpp b/cpp/src/IcePatch/Server.cpp index 10db1b9db92..371e72a9b0f 100644 --- a/cpp/src/IcePatch/Server.cpp +++ b/cpp/src/IcePatch/Server.cpp @@ -10,6 +10,7 @@ #include <Ice/Application.h> #include <IcePatch/NodeLocator.h> +#include <IcePatch/Util.h> using namespace std; using namespace Ice; @@ -90,6 +91,20 @@ IcePatch::Server::run(int argc, char* argv[]) } // + // Create MD5 and BZ2 files. + // + try + { + createMD5Recursive("."); + createBZ2Recursive("."); + } + catch (const NodeAccessException& ex) + { + cerr << appName() << ": " << ex << ":\n" << ex.reason << endl; + return EXIT_FAILURE; + } + + // // Create and initialize the object adapter and the node locator. // ObjectAdapterPtr adapter = communicator()->createObjectAdapterFromProperty("IcePatch", endpointsProperty); |