更改缺省应用程序工具

缺省情况下,在 ccm.properties 文件中设置合并工具、比较工具和编辑器。该文件在 Windows 和 UNIX 上均位于客户机安装的 etc 目录中。 您可以在 Windows 上位于 profile 目录内的 ccm.user.properties 文件中更改缺省应用程序工具设置。在 UNIX 上,可以在位于主目录的 .ccm.user.properties 文件中更改设置。

Windows 的缺省应用程序

关于此任务

Windows 选项 描述
windows.tool.edit.project 定义用于在 Windows 系统上编辑项目的实用程序。
windows.tool.edit.dir 定义用于在 Windows 系统上编辑目录的实用程序。
windows.tool.view.project 定义用于在 Windows 系统上查看项目的实用程序。
windows.tool.view.dir 定义用于在 Windows 系统上查看目录的实用程序。
windows.tool.compare.ascii 定义用于在 Windows 系统上比较文件的实用程序。
windows.tool.merge.ascii 定义用于在 Windows 系统上合并文件的实用程序。
注: Rational® Synergy 需要双精度反斜杠分隔符。
windows.tool.compare.ascii = %ccm_compare
windows.tool.compare.binary = FAIL
windows.tool.merge.ascii = %ccm_merge
windows.tool.merge.binary = FAIL
windows.tool.edit.ascii = "%ccm_home\\bin\\util\\ccm_exec" "%file1"
windows.tool.edit.binary = "%ccm_home\\bin\\util\\ccm_exec" "%file1"
windows.tool.edit.executable = "%file1"
windows.tool.edit.project = explorer.exe "%file1"
windows.tool.edit.dir = explorer.exe "%file1"
windows.tool.view.ascii = "%ccm_home\\bin\\util\\ccm_exec" "%file1"
windows.tool.view.binary = "%ccm_home\\bin\\util\\ccm_exec" "%file1"
windows.tool.view.executable = "%file1"
windows.tool.view.project = explorer.exe "%file1"
windows.tool.view.dir = explorer.exe "%file1"
注: 所显示的值只是示例。可以使用其他命令。

可以使用以下关键字:

edit:%file1、%ccm_home
view:%file1、%ccm_home
help:%file1、%ccm_home
FAIL:该命令不支持操作
compare:%file1、%file2、%file1_label、%file2_label、%ccm_home
merge:%outfile、%ancestor %file1、%file2、%file1_label、%file2_label、
ccm_home

其中 %file1 是第一个文件名。%ccm_home 是客户机安装所在的目录。%file2 是第二个文件名。%file1_label%file2_label 是文件的标签。%ancestor 是合并所使用的公共祖代文件。%outfile 是合并结果。

UNIX 的缺省应用程序

关于此任务

UNIX 选项 描述
unix.tool.edit.project 定义用于在 UNIX 系统上编辑项目的实用程序。
unix.tool.edit.dir 定义用于在 UNIX 系统上编辑目录的实用程序。
unix.tool.view.project 定义用于在 UNIX 系统上查看项目的实用程序。
unix.tool.view.dir 定义用于在 UNIX 系统上查看目录的实用程序。
unix.tool.compare.ascii 定义用于在 UNIX 系统上比较文件的实用程序。
unix.tool.merge.ascii 定义用于在 UNIX 系统上合并文件的实用程序。
unix.tool.compare.ascii = %ccm_compare
unix.tool.compare.binary = FAIL
unix.tool.merge.ascii = %ccm_merge
unix.tool.merge.binary = FAIL
unix.tool.edit.ascii = xterm -geometry 80x40 -e vi %file1
unix.tool.edit.binary = FAIL
unix.tool.edit.project = /bin/sh -c ^(cd '%file1'; xterm)^
unix.tool.edit.dir = /bin/sh -c ^(cd '%file1'; xterm)^
unix.tool.view.ascii = xterm -geometry 80x40 -e vi %file1
unix.tool.view.binary = FAIL
unix.tool.view.project = /bin/sh -c ^(cd '%file1'; xterm)^
unix.tool.view.dir = /bin/sh -c ^(cd '%file1'; xterm)^
注: 所显示的值只是示例。可以使用其他命令。

可以使用以下关键字:

edit:%file1、%ccm_home
view:%file1、%ccm_home
help:%file1、%ccm_home
FAIL:该命令不支持操作
compare:%file1、%file2、%file1_label、%file2_label、%ccm_home
merge:%outfile、%ancestor %file1、%file2、%file1_label、%file2_label、
ccm_home

其中 %file1 是第一个文件名。%ccm_home 是客户机安装所在的目录。%file2 是第二个文件名。%file1_label%file2_label 是文件的标签。%ancestor 是合并所使用的公共祖代文件。%outfile 是合并结果。


反馈