Changeset 482 for CMT/HEAD/source/cmt_project.cxx
- Timestamp:
- Nov 29, 2008, 5:20:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_project.cxx
r471 r482 1057 1057 1058 1058 /*----------------------------------------------------------*/ 1059 void Project::show_paths () 1060 { 1061 VisitorForShowPaths visitor; 1062 1063 start_visit (visitor); 1059 void Project::show_paths (const CmtSystem::cmt_string_vector& arguments) 1060 //void Project::show_paths () 1061 { 1062 if (arguments.size () == 0) 1063 { 1064 const ProjectPtrVector Ordered = Project::ordered_projects (); 1065 for (int i = 0; i < Ordered.size (); i++) 1066 { 1067 const Project* p = Ordered[i]; 1068 const cmt_string& w = p->get_cmtpath_pwd (); 1069 const cmt_string& s = p->get_cmtpath_source (); 1070 1071 if (s == "default path") continue; 1072 1073 if (CmtSystem::test_directory (w)) 1074 { 1075 cout << "# Add path " << w << " from " << s << endl; 1076 } 1077 } 1078 } 1079 else if (arguments.size () == 1 && cmt_string (arguments[0]) == "-d") 1080 { 1081 VisitorForShowPaths visitor; 1082 start_visit (visitor); 1083 } 1084 else 1085 CmtMessage::error ("show_paths: unexpected argument(s)"); 1064 1086 } 1065 1087
Note: See TracChangeset
for help on using the changeset viewer.