views:

36

answers:

2

I want to checkout some files from a batch script, but since we use UCM checking out files needs to be associated with an activity. Is there an easy way to show the GUI for creating/selecting an activity to associate the checkout with?

A: 

You can simply ask for an activity name in your script, and then use the cleartool setactivity command

cleartool sectact -view viewTag -none       # make sure to unset any previous activity
cleartool sectact -view viewTag newActivity # set the new activity (name@\pvob) 

You can launch the ClearCase Project Explorer (UCM GUI) with clearprojexp, but I don't think a "UCM activity dialog box" is available as a separate executable.

VonC
Thank you for the attempt, however I need something that's useable by people who fear the command line and that can create new activities. Seems cleardlg is the answer. :)
Alf
+2  A: 

You can pop up the dialogue by using the cleardlg program with arguments /checkout .

Alf
cleardlg. I somehow missed that. +1
VonC