How StarTeam client can pass parameters that are case sensitive to alternate applications?

0 Likes

Problem:

How StarTeam client can pass parameters that are case sensitive to alternate applications?

Resolution:

  • Product Name: Star Team
  • Product Version: 6.x and above
  • Product Component: StarTeam Server
  • Platform/OS Version: All
  • JDK/Compiler Version: All

Question:

How can Star Team client pass parameters that are case sensitive to alternate applications?


Answer:

By default, the StarTeam client passes the parameters as upper case to an application invoked in the Alternate Applications. This article discribes a workaround to allow passing of case sensitive parameters to the Alternate Applications.

Details:

StarTeam client allows specifying alternate applications for editor, merging utility and comparison utilty by setting it through Tools -> Personal Options -> Alternate Applications. By default, the StarTeam client passes parameters in upper case to these Alternate Applications.

There are applications which have case sensitive parameters. For example, the vim editor has two parameters ? ?f ? and ? ?F? both having different purposes. The ? -F? option invokes the editor in debug mode while the ? ?f ? option starts the editor in merge mode.

In order to workaround the case conversion you can write a script to invoke the alternate application with the correct parameters and call that script instead in the alternate applications dialog.

For example, on a Windows machine, if you want to use vim editor as the comparison utility with the ? ?f ? option to compare the files in merge mode, you can create a batch file vimcompare.bat with the following lines:

@Echo Off
echo Opening Vim in diff mode
"C:\vim\vim.exe" -f -d %1 %2

Then under the Alternate Applications dialog, invoke vimcompare.bat with the options ?$file1 $file2? (without the quotes).

The above steps will pass the lower case parameters to vim correctly


Author: Brindha Venkataramani

Old KB# 28089
Comment List
Related
Recommended