123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- @echo off
- rem *********************************************************************************************************************************
- rem * Licensed Materials - Property of IBM *
- rem * *
- rem * IBM Cognos Products: HTS *
- rem * *
- rem * (C) Copyright IBM Corp. 2005, 2019 *
- rem * *
- rem * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. *
- rem *********************************************************************************************************************************
- rem *************** HTS Export *********************
- rem ** This batch is designed to export Human task service task data
- rem ** -exportFile
- rem ** the exportFile will be created in deployment folder and given a .xml.gz extension if you dont provide one
- rem ** -password
- rem ** this file will be encrypted if you provide this argument, in which case it will necessary to supply the password when you import
- rem ** -camNamespace, -camUsername, -camPassword
- rem ** when running deploy from bin the server must be running and if a secure namespace is defined, the details entered with these parameters
- rem ** -persistenceUnit
- rem ** defaults to humanTaskService but can be annotations
- rem ************************************************
- rem *************** HTS Import *********************
- rem ** This batch is designed to import Human task service task data
- rem ** -importFile
- rem ** the importFile must point to a valid Human task service export file
- rem ** -password
- rem ** this file may be encrypted, in which case it is necessary to supply the password with the -password argument
- rem ** -camNamespace, -camUsername, -camPassword
- rem ** when running deploy from bin the server must be running and if a secure namespace is defined, the details entered with these parameters
- rem ** -overwrite
- rem ** still a work in progress
- rem ** -persistenceUnit
- rem ** defaults to humanTaskService but can be annotations
- rem ************************************************
- rem ---------------------------------------------------------------------------
- rem Shell script (Windows) to invoke jre and launch IBM Cognos Human task service import.
- rem
- rem When exporting, all human tasks will be sent to an xml file in the deployment folder.
- rem at export time, cm is called to resolve all store ids into search paths.
- rem use the htsExportAll batch to export
- rem
- rem to import the deployment file must be physically moved to the deployment folder of the target system
- rem When importing all search paths will be resolved into store ids on the target system.
- rem use the htsImporttAll batch to import
- rem
- rem
- rem J_HOME is the location of the Java RE installation; if JAVA_HOME is
- rem defined, use it. Otherwise default to the local distribution.
- rem J_OPTS are the Java options to be passed into the JAVA VM (optional)
- rem ---------------------------------------------------------------------------
- rem If the argument -java:{env | local} is present as first argument then the required JRE will be
- rem loaded: -java:env will force the script to look for JRE using JAVA_HOME environment variable.
- rem If not found then it will end by an error. The argument -java:local will force it to look
- rem for JRE within the local distribution. If not found then it will end by an error.
- rem Otherwise, the script will default by looking for a JRE using the JAVA_HOME environment
- rem variable, then if cannot find one, it will try to use the local distribution.
- rem ----- Verify and Set Required Environment Variables -----------------------
- rem check if we need to run the local jre
- rem Shift the first argument: -java:local
- if "%1" == "-java:local" (shift & goto useLocal)
- rem Try first the use of JAVA_HOME
- goto useEnvVar
- :useEnvVarOnly
- rem JAVA_HOME should be defined first.
- if "%JAVA_HOME%" == "" goto JavaHomeError
- set J_HOME=%JAVA_HOME%
- echo Looking for JRE in: %J_HOME%\bin...
- if exist "%J_HOME%\bin\java.exe" goto gotJava
- set J_HOME=%JAVA_HOME%\jre
- echo Looking for JRE in: %J_HOME%\jre\bin...
- if exist "%J_HOME%\bin\java.exe" goto gotJava
- :JavaHomeError
- echo You have specified the argument '-java:env'.
- echo However, the environment variable JAVA_HOME is not defined or incorrectly defined.
- echo Please define JAVA_HOME first before using the argument '-java:env'.
- goto finish
- :useLocal
- rem Using the local distribution either because -java:local was
- rem specified or because the JAVA_HOME environment variable
- rem is not defined or if the JAVA_HOME location doesn't have a JRE.
- set J_HOME=..\ibm-jre\jre
- echo Looking for JRE in: %J_HOME%\bin...
- if exist "%J_HOME%\bin\java.exe" goto gotJava
- rem Did not find a JRE in the local location, display error and exit.
- goto error
- :useEnvVar
- rem Shift the first argument: -java:env
- if "%1" == "-java:env" (shift & goto useEnvVarOnly)
- rem Using the distribution referred by JAVA_HOME because
- rem -java:local was NOT specified and the JAVA_HOME environment
- rem variable is defined.
- set J_HOME=%JAVA_HOME%
- echo Looking for JRE in: %J_HOME%\bin...
- if exist "%J_HOME%\bin\java.exe" goto gotJava
- set J_HOME=%JAVA_HOME%\jre
- echo Looking for JRE in: %J_HOME%\bin...
- if exist "%J_HOME%\bin\java.exe" goto gotJava
- rem Did not find a JRE in the environment variable's location. If the
- rem -java:env argument was not specified, try the local distribution.
- if not "%1" == "-java:env" goto useLocal
- :error
- echo Could not find a JRE. Cannot run IBM Cognos Configuration.
- goto finish
- :gotJava
- rem ----- Prepare Appropriate Java Execution Commands -------------------------
- set _RUNJAVA="%J_HOME%\bin\java"
- echo java is %_RUNJAVA%
- set CP=../webapps/p2pd/WEB-INF/classes;../webapps/p2pd/WEB-INF/lib/hts.jar;../webapps/p2pd/WEB-INF/lib/JSQLConnect.jar;../webapps/p2pd/WEB-INF/lib/zipi.jar;../webapps/p2pd/WEB-INF/lib/activation.jar;../webapps/p2pd/WEB-INF/lib/axis.jar;../webapps/p2pd/WEB-INF/lib/axisCrnpClient.jar;../webapps/p2pd/WEB-INF/lib/cclcfgapi.jar;../webapps/p2pd/WEB-INF/lib/cclcoreutil.jar;../webapps/p2pd/WEB-INF/lib/CognosIPF.jar;../webapps/p2pd/WEB-INF/lib/commons-configuration-1.5.jar;../webapps/p2pd/WEB-INF/lib/commons-discovery-0.2.jar;../webapps/p2pd/WEB-INF/lib/commons-httpclient-3.1.jar;../webapps/p2pd/WEB-INF/lib/commons-codec-1.3.jar;../webapps/p2pd/WEB-INF/lib/commons-io-2.4.jar;../webapps/p2pd/WEB-INF/lib/commons-lang-2.6.jar;../webapps/p2pd/WEB-INF/lib/commons-logging-1.1.jar;../webapps/p2pd/WEB-INF/lib/commons-pool-1.3.jar;../webapps/p2pd/WEB-INF/lib/concurrent.jar;../webapps/p2pd/WEB-INF/lib/dom4j-1.6.1.jar;../webapps/p2pd/WEB-INF/lib/i18nj.jar;../webapps/p2pd/WEB-INF/lib/jakarta-oro-2.0.8.jar;../webapps/p2pd/WEB-INF/lib/javacc.jar;../webapps/p2pd/WEB-INF/lib/jaxrpc.jar;../webapps/p2pd/WEB-INF/lib/jcam_crypto.jar;./jcam_jni.jar;../webapps/p2pd/WEB-INF/lib/log4j-1.2.8.jar;../webapps/p2pd/WEB-INF/lib/logkit-1.2.jar;../webapps/p2pd/WEB-INF/lib/mail.jar;../webapps/p2pd/WEB-INF/lib/p2pd.jar;../webapps/p2pd/WEB-INF/lib/saaj.jar;../webapps/p2pd/WEB-INF/lib/soap.jar;../webapps/p2pd/WEB-INF/lib/geronimo-stax-api_1.0_spec-1.0.1.jar;../webapps/p2pd/WEB-INF/lib/wsdl4j-1.5.1.jar;../webapps/p2pd/WEB-INF/lib/wsif.jar;../webapps/p2pd/WEB-INF/lib/xalan.jar;../webapps/p2pd/WEB-INF/lib/xml-apis.jar;../webapps/p2pd/WEB-INF/lib/xmlsec-1.4.3.jar;../webapps/p2pd/WEB-INF/lib/xts.jar;../webapps/p2pd/WEB-INF/lib/xtsext.jar;../tomcat/lib/tools.jar;../tomcat/lib/servlet-api.jar;.//ant.jar;.//cclcfgapi.jar;../webapps/p2pd/WEB-INF/lib/rdsclient.jar;../webapps/p2pd/WEB-INF/lib/uddi4j.jar;../webapps/p2pd/WEB-INF/lib/serp-1.13.1.jar;../webapps/p2pd/WEB-INF/lib/commons-collections-3.2.1.jar;../webapps/p2pd/WEB-INF/lib/commons-pool-1.3.jar;../webapps/p2pd/WEB-INF/lib/geronimo-jta_1.1_spec-1.1.jar;../webapps/p2pd/WEB-INF/lib/openjpa-1.2.1.jar;../webapps/p2pd/WEB-INF/lib/pf.jar;../webapps/p2pd/WEB-INF/lib/json.jar;../webapps/p2pd/WEB-INF/lib/caf.jar;../webapps/p2pd/WEB-INF/lib/jsm-common.jar;../webapps/p2pd/WEB-INF/lib/noticecast.jar;../webapps/p2pd/WEB-INF/lib/geronimo-jpa_3.0_spec-1.0.jar;../webapps/p2pd/WEB-INF/lib/cognos-ws-ht.jar;../webapps/p2pd/WEB-INF/lib/xbean.jar;../bin/slf4j-api-1.7.23.jar;../bin/slf4j-nop-1.7.23.jar;./*.jar
- %_RUNJAVA% -cp %CP% %J_OPTS% com.ibm.cognos.internal.hts.deployment.DeploymentTool %*
- :finish
|