BlPackage - createPackageFromDepotObjectsEx

BlPackage - createPackageFromDepotObjectsEx

Description :

This command creates a BLPackage from multiple depot objects. This command returns the DBKey of the created BLPackage.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

depotObjectDBKeys

String

A comma separated list of the DBKeys of the depot objects to be included into the package.

isSoftLinked

Boolean

True to turn on the soft linked option of the package; false to turn off the soft linked option of the package.

packageName

String

The name of the package to be created.

packageGroupId

Integer

The group ID of the location of the new package.

packageDesc

String

Description of the new package.

propName

String

For each depot object that has properties you want to override, create a comma separated list of the property names whose values you want to override. Leave this argument empty if you do not want to override any property values.

porpVal

String

For each depot object that has properties you want to override, create a comma separated list of the new values. The number of lists and the number of elements in each list must match the corresponding entries in the argument propName.

SUM

String

If you want to override the single user mode (SUM) options for the depot objects in the package, create a comma separated list that specifies the new SUM options for each depot objecct. If you do not want to override any SUM options, leave this argument empty.

reboot

String

If you want to override the Reboot options for the depot objects in the package, create a comma separated list that specifies the new Reboot options for each depot objecct. If you do not want to override any Reboot options, leave this argument empty.

Example

This example shows how to add depot files, a.txt and b.txt, to a BLPackage (pack1). This example overrides the NAME and PATH property of the depot file items in the BLPackage and sets the SUM and RebootAs options of a.txt to "RebootAs" and "AtJobEnd", b.txt to "NotRequired" and "NotRequired" respectively.

Script





DEPOT_OBJECT_1 = DepotObject getDBKeyByTypeStringGroupAndName DEPOT_FILE_OBJECT /default a.txt 

DEPOT_OBJECT_2 = DepotObject getDBKeyByTypeStringGroupAndName DEPOT_FILE_OBJECT /default b.txt 

DEPOT_GROUP_ID = DepotGroup groupNameToId /default 

BlPackage createPackageFromDepotObjectsEx "$DEPOT_OBJECT_1,$DEPOT_OBJECT_2" false "pack1" $DEPOT_GROUP_ID "Import multiple depot objects into a package" "/"NAME,PATH/",/"NAME,PATH/"" "/"a-1.txt,/tmp/a-1.txt/",/"b-1.txt,/tmp/b-1.txt/"" "RebootAs,NotRequired" "AtJobEnd,NotRequired" 



Was this page helpful? Yes No Submitting... Thank you

Comments