VirtualBox

Ignore:
Timestamp:
Sep 13, 2010 2:24:06 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65819
Message:

Main-OVF: make manifest file creation optional

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r31976 r32448  
    342342        RTPrintf("VBoxManage export           <machines> --output|-o <ovf>\n"
    343343                 "                            [--legacy09]\n"
     344                 "                            [--manifest]\n"
    344345                 "                            [--vsys <number of virtual system>]\n"
    345346                 "                                    [--product <product name>]\n"
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp

    r30681 r32448  
    726726        { "--output",             'o', RTGETOPT_REQ_STRING },
    727727        { "--legacy09",           'l', RTGETOPT_REQ_NOTHING },
     728        { "--manifest",           'm', RTGETOPT_REQ_NOTHING },
    728729        { "--vsys",               's', RTGETOPT_REQ_UINT32 },
    729730        { "--product",            'p', RTGETOPT_REQ_STRING },
     
    742743    Utf8Str strOutputFile;
    743744    Utf8Str strOvfFormat("ovf-1.0"); // the default export version
     745    bool fManifest = false; // the default
    744746    std::list< ComPtr<IMachine> > llMachines;
    745747
     
    771773                case 'l':   // --legacy09
    772774                     strOvfFormat = "ovf-0.9";
     775                break;
     776
     777                case 'm':   // --manifest
     778                     fManifest = true;
    773779                break;
    774780
     
    950956        else
    951957            pszAbsFilePath = RTPathAbsDup(strOutputFile.c_str());
    952         CHECK_ERROR_BREAK(pAppliance, Write(Bstr(strOvfFormat), Bstr(pszAbsFilePath), progress.asOutParam()));
     958        CHECK_ERROR_BREAK(pAppliance, Write(Bstr(strOvfFormat), fManifest, Bstr(pszAbsFilePath), progress.asOutParam()));
    953959        RTStrFree(pszAbsFilePath);
    954960
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette