Title: RE: [Eap-list] ClearCase

Came up with this ClearCase integration file before I realized that someone else had already come up with one of these.  This one is pretty comprehensive, and retains the same command names as the Clearcase context-sensitive menus.

Patrick


<?xml version="1.0"?>

<toolSet>
  <tool name="Find Modified Files" description="Find files in this view which have been checked out or hijacked." showInMainMenu="true" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" synchronizeAfterRun="false">

    <exec>
      <option name="COMMAND" value="clearviewupdate" />
      <option name="PARAMETERS" value="-ws $ProjectFileDir$ -modified" />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
  <tool name="Merge Manager..." description="Start the Merge Manager on the view." showInMainMenu="true" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" synchronizeAfterRun="true">

    <exec>
      <option name="COMMAND" value="clearmrgman" />
      <option name="PARAMETERS" value="/w /t $ProjectFileDir$" />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
  <tool name="Add to Source Control..." description="Add the selected item to Source Control." showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" synchronizeAfterRun="true">

    <exec>
      <option name="COMMAND" value="cleardlg" />
      <option name="PARAMETERS" value="/addtosrc $FilePath$" />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
  <tool name="Check In..." description="Check in the selected item." showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" synchronizeAfterRun="true">

    <exec>
      <option name="COMMAND" value="cleardlg" />
      <option name="PARAMETERS" value="/checkin $FilePath$" />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
  <tool name="Check Out... " description="Check out the selected item." showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" synchronizeAfterRun="true">

    <exec>
      <option name="COMMAND" value="cleardlg" />
      <option name="PARAMETERS" value="/checkout  $FilePath$" />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
  <tool name="Compare with Previous Version" description="Compare the selected version with the previous version. (Doesn&apos;t work with hijacked files)" showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" synchronizeAfterRun="true">

    <exec>
      <option name="COMMAND" value="cleardlg" />
      <option name="PARAMETERS" value="/diffpred $FilePath$" />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
  <tool name="Compare with \main\LATEST" description="Compare the selected version with the \main\LATEST version." showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" synchronizeAfterRun="false">

    <exec>
      <option name="COMMAND" value="cleartool" />
      <option name="PARAMETERS" value="diff -graphical $FilePath$ $FilePath$@@\main\LATEST " />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
  <tool name="Find Checkouts" description="Find checked out items in the current directory." showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" synchronizeAfterRun="false">

    <exec>
      <option name="COMMAND" value="clearfindco" />
      <option name="PARAMETERS" value="$FilePath$" />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
  <tool name="History" description="Show historical events for the selected item." showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" synchronizeAfterRun="false">

    <exec>
      <option name="COMMAND" value="clearhistory" />
      <option name="PARAMETERS" value="$FilePath$@@" />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
  <tool name="Properties of Element" description="Display the properties of the selected element." showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" synchronizeAfterRun="false">

    <exec>
      <option name="COMMAND" value="cleardescribe" />
      <option name="PARAMETERS" value="$FilePath$" />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
  <tool name="Undo Checkout..." description="Undo the checkout of the selected item." showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" synchronizeAfterRun="true">

    <exec>
      <option name="COMMAND" value="cleardlg" />
      <option name="PARAMETERS" value="/uncheckout $FilePath$" />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
  <tool name="Undo Hijacked File" description="UnHijack selected file using clearcase" showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" synchronizeAfterRun="true">

    <exec>
      <option name="COMMAND" value="clearviewupdate" />
      <option name="PARAMETERS" value="-unhijack -pname $FilePath$" />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
  <tool name="Update" description="Loads versions selected by view for selected file/directory." showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" synchronizeAfterRun="true">

    <exec>
      <option name="COMMAND" value="clearviewupdate" />
      <option name="PARAMETERS" value="-pname $FilePath$" />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
  <tool name="Version Tree" description="Display a version tree for the selected item." showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" synchronizeAfterRun="false">

    <exec>
      <option name="COMMAND" value="clearvtree" />
      <option name="PARAMETERS" value="$FilePath$" />
      <option name="WORKING_DIRECTORY" />
    </exec>
  </tool>
</toolSet>

Reply via email to