Changeset 21077 in vbox for trunk/src/VBox/Main/ApplianceImpl.cpp
- Timestamp:
- Jun 30, 2009 3:19:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r21073 r21077 26 26 #include <iprt/file.h> 27 27 #include <iprt/s3.h> 28 #include "iprt/xml_cpp.h"29 28 30 29 #include <VBox/param.h> … … 40 39 41 40 #include "Logging.h" 41 42 #include "VBox/xml.h" 42 43 43 44 using namespace std; … … 233 234 // 234 235 //////////////////////////////////////////////////////////////////////////////// 236 237 static Utf8Str stripFilename(const Utf8Str &strFile) 238 { 239 Utf8Str str2(strFile); 240 RTPathStripFilename(str2.mutableRaw()); 241 return str2; 242 } 235 243 236 244 static const struct … … 2238 2246 /* The disk image has to be on the same place as the OVF file. So 2239 2247 * strip the filename out of the full file path. */ 2240 Utf8Str strSrcDir(pAppliance->m->strPath); 2241 strSrcDir.stripFilename(); 2248 Utf8Str strSrcDir = stripFilename(pAppliance->m->strPath); 2242 2249 2243 2250 /* Iterate over all given disk images */ … … 3515 3522 const Utf8Str &strTargetFileNameOnly = pDiskEntry->strOvf; 3516 3523 // target path needs to be composed from where the output OVF is 3517 Utf8Str strTargetFilePath(m->strPath); 3518 strTargetFilePath.stripFilename(); 3524 Utf8Str strTargetFilePath = stripFilename(m->strPath); 3519 3525 strTargetFilePath.append("/"); 3520 3526 strTargetFilePath.append(strTargetFileNameOnly); … … 3715 3721 const Utf8Str &strTargetFileNameOnly = (*itH)->strOvf; 3716 3722 /* Target path needs to be composed from where the output OVF is */ 3717 Utf8Str strTargetFilePath(m->strPath); 3718 strTargetFilePath.stripFilename(); 3723 Utf8Str strTargetFilePath = stripFilename(m->strPath); 3719 3724 strTargetFilePath.append("/"); 3720 3725 strTargetFilePath.append(strTargetFileNameOnly); … … 4731 4736 4732 4737 Utf8Str strTargetVmdkName(bstrName); 4733 strTargetVmdkName.stripExt();4738 RTPathStripExt(strTargetVmdkName.mutableRaw()); 4734 4739 strTargetVmdkName.append(".vmdk"); 4735 4740
Note:
See TracChangeset
for help on using the changeset viewer.