Changeset 177


Ignore:
Timestamp:
Apr 25, 2006, 11:59:53 AM (19 years ago)
Author:
arnault
Message:

Add support for a <project> template in patterns - See CL 301

File:
1 edited

Legend:

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

    r11 r177  
    766766      replacement.replace_all ("<path>",    context_use->real_path.c_str ());
    767767
     768      Project* p = Project::find_by_cmtpath (context_use->real_path);
     769      if (p != 0)
     770        {
     771          const cmt_string& n = p->get_name ();
     772          replacement.replace_all ("<project>", n.c_str ());
     773        }
     774
    768775      for (int j = 0; j < templates.size (); j++)
    769776        {
Note: See TracChangeset for help on using the changeset viewer.