Etiketler
Clear Case, Clear Tool, ClearCase, Cleartool, Cleartool Commands, Configuration Management, Create ClearCase View, Create Snapshot View, IBM, IBM ClearCase, SCM, Set Config Spec, Version Control
Although IBM ClearCase usage is very common at IT fields, most developers are not familiar with cleartool commands. Starting a project which consists of setting up the environment of a test station, cleartool commands become more important than ever, so I found out the exact arrangement to create a snapshot view. Since I could not find this sequence on the net I want to share my knowledge as followings:
The bold parts needs to be adapted on samples.
——————
IT sektöründe çokça kullanılan bir araç olan ClearCase genelde kullanıcı arayüzü üzerinden kullanıldığı için cleartool komutları pek bilinmemekte. Geçenlerde bir betik projesi için kullanmam gerektiğinde ben de doğru parametre kombinasyonunu bulmakta biraz zorlandım. Bulunca da başka ihtiyaç duyanlar olabilir düşüncesiyle buraya yazayım dedim. Umarım işinize yarar:)
Koyu ile belirtilen kısımlar sizin kendinize göre uyarlamanız gerekenler.
1. To Create Snapshot View:
cleartool mkview -snapshot -tag <tag_name> -vws \\<computer_name>\<views_folder>\<view_name> <path_of_localstorage>
tag_name : The name of snapshot view you will create. (e.g. Dev_View_on_TestPC) || oluşturacağınız view için kullanacağınız isim.
computer_name : The name of computer. (e.g. TestPC) || bilgisayarınızın ismi
views_folder : Directory name of Clear Case views on the PC. (e.g. views) || view dosyalarının bulunacağı dizin adı
view_name : The name of snapshot view you will create again with “.vws” extension. (e.g. Dev_View_on_TestPC.vws) || yeniden oluşturacağınız view için kullanacağınız isim bu kez “.vws” uzantısıyla.
path_of_localstorage: Path of the snapshot view on the PC. (e.g. D:\TestStorage\DEV) || View oluşturulacak dizinin adresi
Sample Usage | Örnek Kullanım:
cleartool mkview -snapshot -tag Dev_View_on_TestPC -vws \\TestPC\views\Dev_View_on_TestPC.vws D:\TestStorage\DEV
After completing this command, view will be created but folder will be empty until filling it with using config spec.
2. To Set ConfigSpec & Load Local Storage
cleartool setcs -force -overwrite -ptime <CS_Folder_Path>\<CS_File_Name>
CS_Folder_Path : The path of where you located the config spec file. || Config Spec dosyasının bulunduğu adres
CS_File_Name : The name of Config Spec File. | Config Spec dosyasının ismi
Sample Usage | Örnek Kullanım:
cleartool setcs -force -overwrite -ptime C:\\setCS\ConfigSpecDEV.cs