如何安裝 IBM ClearCase 遠端轉接器的檔案
下一節說明如何在遠端機器上安裝 IBM Rational ClearCase 轉接器的檔案。
1. 請在將要執行 IBM Rational ClearCase 轉接器的電腦上建立目錄 ADAPTER_HOME,例如 \SVN-OOP。
2. 登入 Windchill 並從 Windchill 的「快速連結」下拉清單存取「軟體下載」頁。在 Windchill Integrations for Embedded Software 下,將下列檔案下載至您的本機電腦:
◦ Windchill to IBM Rational ClearCase Adapter - 下載此封裝 (cc.zip) 以安裝及執行 IBM Rational ClearCase adapter .bat 檔案。
在遠端電腦上配置 IBM Rational ClearCase 轉接器
下一節說明如何在遠端機器上配置 IBM Rational ClearCase 轉接器。
1. 使用下載的Windchill to IBM Rational ClearCase Adapter 封裝 (cc.zip) 配置 startCCAdapter.bat 檔案。
a. 將 cc.zip 檔案解壓縮至本機資料夾。
b. 將 startCCAdapter.bat 複製到 <ADAPTER_HOME> 目錄。
範例 startCCAdapter.bat 檔案:
@echo off
rem Start up script for Windchill Integrations for
rem Embedded Software IBM Rational ClearCase Adapter
rem *****************************************
rem User configured properties
rem set JAVA_HOME to the install location of the JDK
set JAVA_HOME=
rem set ADAPTER_HOME to the directory where the file cc.zip was extracted
set ADAPTER_HOME=
rem ADAPTER_NAME should be the set to the name of ClearCase adapter you created
rem in Windchill Integrations for Embedded Software.
set ADAPTER_NAME=$WC.com.ptc.swlink.scm.defaultAdapter$
rem *****************************************
rem IEPROPFILE should look like..
rem ldap://cn=manager:manager@test.ptc.com/dc=IeProps,dc=test...
rem and should be the same as 'seeAlso' value seen in the file
rem WT_HOME\codebase\WEB-INF\ie.properties
set IEPROPFILE=$WC.com.ptc.swlink.scm.iepropfile$
rem IENAMINGSERVICENAME should be the same as the value of
rem wt.federation.ie.namingService
rem in WT_HOME\codebase\wt.properties
set IENAMINGSERVICENAME=$WC.com.ptc.swlink.scm.ccConfig.host2$.namingService
set SCM_HOME=%ADAPTER_HOME%
set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\servlet.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\ie3rdpartylibs.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\ieWeb.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\jmxcoreWeb.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\wc3rdpartylibs.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\CommonCore.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\MetaSpecCommon.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\cc.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\install.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%;%CLASSPATH%
title SCM Adapter
echo -------------------------------------------------------------------------------
echo Starting SCM Adapter
echo.
echo JAVA_HOME = %JAVA_HOME%
echo ADAPTER_HOME = %ADAPTER_HOME%
echo ADAPTER_NAME = %ADAPTER_NAME%
echo.
echo CLASSPATH = %CLASSPATH%
echo.
if not exist %JAVA_HOME%\bin\java.exe (
echo ERROR: Cannot find Java command - check JAVA_HOME value
echo.
pause
exit
)
if not exist %ADAPTER_HOME% (
echo ERROR: %ADAPTER_HOME% does not exist - check ADAPTER_HOME value
echo.
pause
exit
)
rem The following line starts the scm adapter as a standalone process
%JAVA_HOME%\bin\java.exe -cp "%CLASSPATH%" -DpropFile="%IEPROPFILE%"
-DruntimeServiceName="%ADAPTER_NAME%" -DserviceName="%ADAPTER_NAME%"
-DnamingServiceName="%IENAMINGSERVICENAME%" -Dwt.home="%SCM_HOME%"
com.ptc.swlink.scm.adapter.clearcase.CcMultithreadedAdapter
pause
c. 編輯 startCCAdapter.bat 檔案並指定下列值:
▪ ADAPTER_HOME -- 指定擷取所有來自 cc.zip 檔案的 jar 檔案的目錄,如上所述。例如:
set ADAPTER_HOME=D:\SCMI-OOP
▪ JAVA_HOME - 指定 JDK 的位置 (將要執行 IBM Rational ClearCase 轉接器的電腦)。JDK 1.5 版應該安裝在用戶端機器上。
例如,
set JAVA_HOME=c:\jdk\jdk1.5_0_06
▪ ADAPTER_NAME - 指定在 Windchill 中建立之 IBM Rational ClearCase 轉接器的名稱。
例如,
set ADAPTER_NAME=$WC.com.ptc.swlink.scm.defaultAdapter$
|
此外,也請確認 IEPROPFILE 與 IENAMINGSERVICENAME 都擁有如 startCCAdapter.bat 檔案註解所述的正確值。
|
d. 最後一步為啟動 IBM Rational ClearCase 轉接器。轉接器執行之後,啟動 Windchill 伺服器 servlet 引擎。
a. 使用 startCCAdapter.bat 檔案,在要執行 IBM Rational ClearCase 轉接器的電腦上啟動該轉接器。
b. 轉接器啟動之後,啟動 Windchill 伺服器 servlet 引擎。現在,IBM Rational ClearCase 轉接器應該已經成功配置並遠端執行了。