blob: d42f4c9fa422441128f5f38e42eebb59580adffd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#include "tools/Config_Handlers/DnC_Dump.h"
#include "tools/Config_Handlers/XML_File_Intf.h"
#include "dance/Logger/Log_Macros.h"
int ACE_TMAIN (int argc, ACE_TCHAR * argv[])
{
try
{
if (argc < 1)
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("Incorrect count of arguments. ")
ACE_TEXT ("Path to deployment plan has not been specified.\n")));
return 1;
}
DAnCE::Config_Handlers::XML_File_Intf file (argv[1]);
file.add_search_path (ACE_TEXT ("DANCE_ROOT"), ACE_TEXT ("/docs/schema/"));
file.add_search_path (ACE_TEXT ("CIAO_ROOT"), ACE_TEXT ("/docs/schema/"));
file.add_search_path (ACE_TEXT ("TAO_ROOT"), ACE_TEXT ("/docs/schema/"));
Deployment::DeploymentPlan * plan = file.release_plan();
Deployment::DnC_Dump::dump (*plan);
delete plan;
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("DAnCE_DeploymentPlanDump::main\n");
return -1;
}
catch (...)
{
ACE_ERROR ((LM_ERROR, ACE_TEXT ("Unexpected exception\n")));
return 1;
}
return 0;
}
|