Setup TIM and WAS APIs for remote use
The following scripts copy all TIM API JARs as well as the properties and the WAS jar's required for building ITIM Java applications remotely.
Adjust folder names for your tastes.
@echo on
mkdir "f:\Program Files\ibm\itim\lib\"
mkdir "f:\apiscript\Lib\"
mkdir "f:\Program Files\ibm\WebSphere\AppServer\runtimes\"
mkdir "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\"
mkdir "f:\Program Files\ibm\WebSphere\AppServer\lib\"
copy "\\itimserver\f$\Program Files\ibm\itim\lib\jlog.jar" "f:\Program Files\ibm\itim\lib\jlog.jar"
copy "\\itimserver\f$\Program Files\ibm\itim\lib\itim_api.jar" "f:\Program Files\ibm\itim\lib\itim_api.jar"
copy "\\itimserver\f$\Program Files\ibm\itim\lib\itim_common.jar" "f:\Program Files\ibm\itim\lib\itim_common.jar"
copy "\\itimserver\f$\Program Files\ibm\itim\lib\itim_server.jar" "f:\Program Files\ibm\itim\lib\itim_server.jar"
copy "\\itimserver\f$\Program Files\ibm\itim\lib\itim_server_api.jar" "f:\Program Files\ibm\itim\lib\itim_server_api.jar"
copy "\\itimserver\f$\Program Files\ibm\itim\lib\api_ejb.jar" "f:\Program Files\ibm\itim\lib\api_ejb.jar"
copy "\\itimserver\f$\Program Files\ibm\itim\lib\jffdc.jar" "f:\Program Files\ibm\itim\lib\jffdc.jar"
copy "\\itimserver\f$\apiscript\Lib\msbase.jar" "f:\apiscript\Lib\msbase.jar"
copy "\\itimserver\f$\apiscript\Lib\mssqlserver.jar" "f:\apiscript\Lib\mssqlserver.jar"
copy "\\itimserver\f$\apiscript\Lib\msutil.jar" "f:\apiscript\Lib\msutil.jar"
copy "\\itimserver\f$\apiscript\Lib\zxJDBC.jar" "f:\apiscript\Lib\zxJDBC.jar"
copy "\\itimserver\f$\apiscript\Lib\saxon9he.jar" "f:\apiscript\Lib\saxon9he.jar"
copy "\\itimserver\f$\Program Files\ibm\itim\lib\aspectjrt.jar" "f:\Program Files\ibm\itim\lib\aspectjrt.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.jaxws.thinclient_7.0.0.jar" "f:\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.jaxws.thinclient_7.0.0.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.admin.client_7.0.0.jar" "f:\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.admin.client_7.0.0.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.ejb.thinclient_7.0.0.jar" "f:\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.ejb.thinclient_7.0.0.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.jpa.thinclient_7.0.0.jar" "f:\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.jpa.thinclient_7.0.0.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.messagingClient.jar" "f:\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.messagingClient.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.orb_7.0.0.jar" "f:\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.orb_7.0.0.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.sib.client.thin.jms_7.0.0.jar" "f:\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.sib.client.thin.jms_7.0.0.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.sib.client_ExpeditorDRE_7.0.0.jar" "f:\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.sib.client_ExpeditorDRE_7.0.0.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.webservices.thinclient_7.0.0.jar" "f:\Program Files\ibm\WebSphere\AppServer\runtimes\com.ibm.ws.webservices.thinclient_7.0.0.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\runtimes\ejb3exceptions.jar" "f:\Program Files\ibm\WebSphere\AppServer\runtimes\ejb3exceptions.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\bootstrap.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\bootstrap.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\ecutils.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\ecutils.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\ffdc.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\ffdc.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\idl.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\idl.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\iwsorb.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\iwsorb.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\j2ee.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\j2ee.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\naming.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\naming.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\namingclient.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\namingclient.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\ras.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\ras.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\sas.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\sas.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\utils.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\utils.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\wsexception.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\wsexception.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\wssec.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\wssec.jar"
copy "\\itimserver\f$\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\utils.jar" "f:\Program Files\ibm\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.1.v20090303_1013\wasJars\utils.jar"
copy "\\itimserver\f$\Program Files\IBM\WebSphere\AppServer\lib\lmproxy.jar" "f:\Program Files\ibm\WebSphere\AppServer\lib\lmproxy.jar"
rem following is a one-off for regexp password extensions
copy "\\itimserver\f\Program Files\IBM\itim\lib\regexp.jar" "F:\Program Files\IBM\itim\lib\regexp.jar"
The following code also copies properties for the Jython TIM API's.
@echo off
mkdir f:\apiscript\etc\
copy "\\itimserver\f$\apiscript\etc\apiscript.properties" f:\apiscript\etc\
mkdir f:\apiscript\etc\host
copy "\\itimserver\f$\apiscript\etc\host\itimserver.properties" f:\apiscript\etc\host\%COMPUTERNAME%.properties
mkdir "f:\program files\ibm\itim\data\"
copy "\\itimserver\f$\program files\ibm\itim\data\enRole.properties" "f:\program files\ibm\itim\data\"
copy "\\itimserver\f$\program files\ibm\itim\data\tmsMessages.properties" "f:\program files\ibm\itim\data\"
copy "\\itimserver\f$\program files\ibm\itim\data\tmsMessages_en.properties" "f:\program files\ibm\itim\data\"
mkdir "f:\program files\ibm\itim\extensions\examples\apps\bin\"
copy "\\itimserver\f$\program files\ibm\itim\extensions\examples\apps\bin\jaas_login_was.conf" "f:\program files\ibm\itim\extensions\examples\apps\bin\"
The following file copies the WAS stuff en-masse.
@echo on
xcopy /E /Y /I "\\itimserver\f$\Program Files\IBM\Websphere\AppServer\java" "F:\Program Files\IBM\Websphere\AppServer\java"
@Tools @ITIM @WebSphere