Ignore:
Timestamp:
Aug 23, 2010, 11:31:26 AM (14 years ago)
Author:
rybkin
Message:

See C.L. 435

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/source/cmt_parser.cxx

    r549 r550  
    40424042  do_check_configuration (ap);
    40434043
     4044  switch (ap.mode)
     4045    {
     4046    case Xml :
     4047      Cmt::print_xml_prolog ("setup");
     4048      cout << "<setup>";
     4049      break;
     4050    }
    40444051  print (ap.mode);
     4052  switch (ap.mode)
     4053    {
     4054    case Xml :
     4055      cout << "</setup>" << endl;
     4056      break;
     4057    }
    40454058
    40464059  //
     
    45684581
    45694582//----------------------------------------------------------
    4570 void Cmt::do_show_projects (const ArgParser& /*ap*/)
    4571 {
    4572   Project::show_all ();
     4583void Cmt::do_show_projects (const ArgParser& ap)
     4584//void Cmt::do_show_projects (const ArgParser& /*ap*/)
     4585{
     4586  Project::show_all (ap.mode);
    45734587}
    45744588
     
    47744788
    47754789//----------------------------------------------------------
    4776 void Cmt::do_show_uses (const ArgParser& /*ap*/, ostream& out)
    4777 {
    4778   Use::show_all (false, out);
     4790void Cmt::do_show_uses (const ArgParser& ap, ostream& out)
     4791//void Cmt::do_show_uses (const ArgParser& /*ap*/, ostream& out)
     4792{
     4793  Use::show_all (false, out, ap.mode);
     4794  //  Use::show_all (false, out);
    47794795}
    47804796
     
    71237139    }
    71247140
     7141  switch (mode)
     7142    {
     7143    case Xml :
     7144      break;
     7145    default :
    71257146  cout << endl;
     7147      break;
     7148    }
    71267149}
    71277150
     
    72947317       
    72957318      break;
     7319    case Xml :
     7320      if (do_root)
     7321        {
     7322          cout << "<variable><name>" << use.prefix << "ROOT</name>"
     7323               << "<value>" << use.get_full_path () << "</value></variable>";
     7324        }
     7325
     7326      if (use.get_package_name () == "CMT")
     7327        {
     7328          cout << "<variable><name>CMTCONFIG</name>"
     7329               << "<value>" << system << "</value></variable>";
     7330        }
     7331      else
     7332        {
     7333          if (do_config)
     7334            {
     7335              cout << "<variable><name>" << use.prefix << "CONFIG</name>"
     7336                   << "<value>" << tag << "</value></variable>";
     7337            }
     7338        }
     7339       
     7340      break;
    72967341    case Requirements :
    72977342      if (do_root &&
     
    74517496      tabs--;
    74527497    }
     7498}
     7499
     7500//----------------------------------------------------------
     7501void Cmt::print_xml_prolog (const cmt_string& root, ostream& out)
     7502{
     7503  out << "<?xml version=\"1.0\" standalone=\"no\"?>" << endl;
     7504  cmt_string dtd_file (Me.m_cmt_root);
     7505  dtd_file += CmtSystem::file_separator ();
     7506  dtd_file += "mgr";
     7507  dtd_file += CmtSystem::file_separator ();
     7508  dtd_file += "CMT.dtd";
     7509  out << "<!DOCTYPE " + root + " SYSTEM \"" + dtd_file + "\">" << endl;
    74537510}
    74547511
Note: See TracChangeset for help on using the changeset viewer.