summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-07-23 21:30:02 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-07-23 21:30:02 +0000
commit5f00b4cd6f2108713e4d1ef3414378b88dbfcd03 (patch)
treeed75a79cf4c2299e1970e982d946a37d28fb4a9e /cpp/src
parentFixes for Java IceBox services (diff)
downloadice-5f00b4cd6f2108713e4d1ef3414378b88dbfcd03.tar.bz2
ice-5f00b4cd6f2108713e4d1ef3414378b88dbfcd03.tar.xz
ice-5f00b4cd6f2108713e4d1ef3414378b88dbfcd03.zip
Fixes
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/IcePack/ComponentDeployer.cpp2
-rw-r--r--cpp/src/IcePack/Server.cpp23
2 files changed, 17 insertions, 8 deletions
diff --git a/cpp/src/IcePack/ComponentDeployer.cpp b/cpp/src/IcePack/ComponentDeployer.cpp
index 0716c96d709..a19221e899d 100644
--- a/cpp/src/IcePack/ComponentDeployer.cpp
+++ b/cpp/src/IcePack/ComponentDeployer.cpp
@@ -539,7 +539,7 @@ IcePack::ComponentDeployer::addOffer(const string& offer, const string& adapter,
}
catch(Ice::LocalException& ex)
{
- cerr << "Couldn't contact the yellow service to register the offer '" << offer << "':" << ex << endl;
+ cerr << "Couldn't contact the yellow service to register the offer '" << offer << "':\n" << ex << endl;
_error++;
return;
}
diff --git a/cpp/src/IcePack/Server.cpp b/cpp/src/IcePack/Server.cpp
index 3ef27c001fc..16502266c9c 100644
--- a/cpp/src/IcePack/Server.cpp
+++ b/cpp/src/IcePack/Server.cpp
@@ -77,21 +77,30 @@ main(int argc, char* argv[])
return EXIT_FAILURE;
}
+ PropertiesPtr defaultProperties;
+ try
+ {
+ defaultProperties = getDefaultProperties(argc, argv);
+ StringSeq args = argsToStringSeq(argc, argv);
+ args = defaultProperties->parseCommandLineOptions("IcePack", args);
+ stringSeqToArgs(args, argc, argv);
+ }
+ catch(const SystemException& ex)
+ {
+ cerr << argv[0] << ": " << ex << endl;
+ return EXIT_FAILURE;
+ }
+
//
- // Get the data directory from the IcePack.Data property.
+ // Check that IcePack.Data property is set and creates
+ // subdirectories db and servers if they don't already exist.
//
- PropertiesPtr defaultProperties = getDefaultProperties(argc, argv);
- StringSeq args = argsToStringSeq(argc, argv);
- args = defaultProperties->parseCommandLineOptions("IcePack", args);
- stringSeqToArgs(args, argc, argv);
-
string dataPath = defaultProperties->getProperty("IcePack.Data");
if(dataPath.empty())
{
cerr << argv[0] << ": property `IcePack.Data' is not set" << endl;
return EXIT_FAILURE;
}
-
if(dataPath[dataPath.length() - 1] != '/')
{
dataPath += "/";