Unsupported content

 

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

BlPackage - getPackageDateModified

BlPackage - getPackageDateModified

Description :

This command gets the most recent date the package was modified.

Return type : java.util.Date

Command Input :

Variable Name

Variable Type

Description

pkgPath

String

Path to the package.

pkgName

String

Name of the package.

Example

The following example compares the date a package was created to the most recent date the package was modified, to see if anyone has changed the package since it was first created.

Script





DATE_CREATED=`blcli BlPackage getPackageDateCreated /Depot/Packages "Test Package"` 

DATE_MODIFIED=`blcli BlPackage getPackageDateCreated /Depot/Packages "Test Package"` 

if [ "$DATE_MODIFIED" = "$DATE_CREATED" ] 

then 

echo "Package is in it's initial state" 

else 

echo "Package has been modified since creation" 

fi 



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

Comments