Changeset 7897
- Timestamp:
- 06/17/08 19:55:45 (5 years ago)
- Location:
- ossiedev/branches/ssayed/devs/src/system/ossie/framework
- Files:
-
- 2 modified
-
DomainManager_impl.cpp (modified) (4 diffs)
-
FileManager_impl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/ssayed/devs/src/system/ossie/framework/DomainManager_impl.cpp
r7896 r7897 1108 1108 //sadComponents.begin(); 1109 1109 std::vector < SADComponentPlacement * >::iterator _iterator = sadComponents->begin (); 1110 1110 std::cout << "[DomainManager::installApplication] Validating SPDs\n"; 1111 1111 while (_iterator != sadComponents->end ()) 1112 1112 { … … 1114 1114 ++_iterator; 1115 1115 } 1116 1116 std::cout << "[DomainManager::installApplication] Adding new AppFac\n"; 1117 1117 appFact_servants.push_back(new ApplicationFactory_impl (profileFileName, &_applications)); 1118 1118 … … 1123 1123 1124 1124 ossieSupport::sendObjAdded_event(_identifier.c_str(), sadParser->getID(), sadParser->getName(), (CORBA::Object_var) NULL, StandardEvent::APPLICATION_FACTORY); 1125 1126 1127 delete sadParser; 1128 1125 // FIXME: There is a problem deleting SADParser; causes seg fault 1126 // delete sadParser; 1129 1127 } catch (CF::FileException& ex) { 1130 1128 std::cout << "[DomainManager::installApplication] While validating the SAD profile: " << ex.msg << "\n"; … … 1455 1453 if ((strstr (_spdProfile, ".spd.xml")) == NULL) 1456 1454 std::cerr << "File " << _spdProfile << " should end with .spd.xml" << std::endl; 1457 1455 std::cout << "[DomainManager::validateSPD] Validating: " << _spdProfile << "\n"; 1458 1456 SPDParser spdParser ( _fileMgr->open( _spdProfile, true ) ); 1459 1457 -
ossiedev/branches/ssayed/devs/src/system/ossie/framework/FileManager_impl.cpp
r7855 r7897 199 199 throw CF::InvalidFileName (CF::CFEINVAL, "[FileManager::exists] Invalid file name"); 200 200 } 201 unsigned int fileFS(0); 202 std::string filePath; 203 204 getFSandFSPath(fileName, fileFS, filePath); 205 206 DEBUG(6, FileManager, "Running FS.exists for FS " << mount_table[fileFS].mountPoint << " and path " << filePath) 207 if (mount_table[fileFS].fs->exists (filePath.c_str())) 208 return true; 209 else 210 return false; 201 202 DEBUG(6, FileManager, "Running FS.exists for file " << fileName) 203 204 for( int i = 0; i < numMounts; i++ ) 205 { 206 if (mount_table[i].fs->exists (fileName) ) 207 return true; 208 } 209 return false; 211 210 } 212 211