Changeset 38 for CMT


Ignore:
Timestamp:
Apr 14, 2005, 12:02:59 PM (19 years ago)
Author:
arnault
Message:

Fix project naming scheme. See CL 267

Location:
CMT/HEAD
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r37 r38  
     12005-04-14  Christian Arnault  <arnault@lal.in2p3.fr> 267
     2
     3        * source/cmt_system.cxx (class CMTPathManager): CMTUSERCONTEXT and
     4        CMTHOME environments give a specific name to teh associated
     5        project.
     6
     7        * source/cmt_project.cxx (create_project): Fixing the project
     8        naming scheme. Project name specified in the project files take
     9        precedence over the names found in the path.
     10
    1112005-04-13  Christian Arnault  <arnault@lal.in2p3.fr> 266
    212
  • CMT/HEAD/source/cmt_project.cxx

    r36 r38  
    341341            {
    342342              // The specified name is not in the path.
    343              
     343              /*
    344344              if (!Cmt::get_quiet ())
    345345                {
     
    348348                       << " from the caller does not match path." << endl;
    349349                }
     350              */
     351              name = specified_name;
    350352            }
    351353         
     
    365367            {
    366368              // The specified name is not in the path.
    367              
     369              /*
    368370              if (!Cmt::get_quiet ())
    369371                {
     
    372374                       << " from project file and from caller does not match path." << endl;
    373375                }
     376              */
     377              name = specified_name;
    374378            }
    375379         
     
    410414                       << " from project file match path." << endl;
    411415                }
     416
     417              name = specified_name;
    412418            }
    413419         
     
    422428              // The specified name has been found from the path.
    423429              // We believe in the release spec.
    424              
     430
    425431            }
    426432          else
     
    436442                }
    437443              */
     444
     445              name = project_name;
    438446            }
    439447         
     
    473481            {
    474482              // The specified name is not in the path.
    475              
     483              /*
    476484              if (!Cmt::get_quiet ())
    477485                {
     
    480488                       << " from project graph does not match path." << endl;
    481489                }
     490              */
     491              name = specified_name;
    482492            }
    483493         
     
    14091419  int i;
    14101420
     1421  /*
    14111422  for (i = 0; i < m_parents.size (); i++)
    14121423    {
     
    14221433      cout << " C=" << p->get_name ();
    14231434    }
     1435  */
    14241436
    14251437  cout << endl;
  • CMT/HEAD/source/cmt_system.cxx

    r19 r38  
    13021302            return;
    13031303          }
    1304        
    1305         m_project = factory.create_project ("", npath, path_source, m_project);
     1304
     1305        cmt_string project_name;
     1306
     1307        if ((path_source == "CMTUSERCONTEXT") ||
     1308            (path_source == "CMTHOME"))
     1309          {
     1310            project_name = path_source;
     1311          }
     1312
     1313        m_project = factory.create_project (project_name, npath, path_source, m_project);
    13061314      }
    13071315  }
Note: See TracChangeset for help on using the changeset viewer.