version 1.25, 2006/11/14 18:34:56
|
version 1.29, 2008/04/09 07:03:31
|
|
|
#include "ProviderManager.h" | #include "ProviderManager.h" |
#include <Pegasus/Common/FileSystem.h> | #include <Pegasus/Common/FileSystem.h> |
#include <Pegasus/Config/ConfigManager.h> | #include <Pegasus/Config/ConfigManager.h> |
|
#include <Pegasus/Common/PegasusVersion.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
| |
String ProviderManager::_resolvePhysicalName(String physicalName) | String ProviderManager::_resolvePhysicalName(String physicalName) |
{ | { |
#if defined(PEGASUS_OS_VMS) |
|
String fileName = |
#ifdef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE |
FileSystem::buildLibraryFileName(physicalName) + String(".exe"); |
if ( System::is_absolute_path(physicalName.getCString()) ) |
#else |
{ |
String fileName = FileSystem::buildLibraryFileName(physicalName); |
return physicalName; |
|
} |
#endif | #endif |
#ifndef PEGASUS_OS_OS400 |
|
|
String fileName = FileSystem::buildLibraryFileName(physicalName); |
fileName = FileSystem::getAbsoluteFileName( | fileName = FileSystem::getAbsoluteFileName( |
ConfigManager::getHomedPath( | ConfigManager::getHomedPath( |
ConfigManager::getInstance()->getCurrentValue("providerDir")), | ConfigManager::getInstance()->getCurrentValue("providerDir")), |
fileName); | fileName); |
#endif |
|
| |
return fileName; | return fileName; |
} | } |