123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- @rem
- @rem Licensed Materials - Property of IBM
- @rem
- @rem IBM Cognos Products: CAMCrypto
- @rem
- @rem (C) Copyright IBM Corp. 2005, 2022
- @rem
- @rem US Government Users Restricted Rights - Use,
- @rem duplication or disclosure restricted by GSA
- @rem ADP Schedule Contract with IBM Corp.
- @rem
- @echo off
- rem ---------------------------------------------------------------------------
- rem Shell script (Windows) to invoke jre and launch 3rd party certificate tool
- rem
- rem J_HOME is the location of the Java RE installation; if JAVA_HOME is
- rem defined, use it. Otherwise default to the relative distribution.
- rem J_OPTS are the Java options to be passed into the JAVA VM (optional)
- rem
- rem ---------------------------------------------------------------------------
- SETLOCAL
- rem ----- Verify Required Environment Variables -----------------------
- set FULLPARAMS=%*
- rem using the local distribution
- rem Shift the first argument: -java:local
- if "%1" == "-java:local" goto useLocal
- set J_HOME=%JAVA_HOME%
- echo Looking in: %J_HOME%\bin...
- if exist "%J_HOME%\bin\java.exe" goto gotJava
- set J_HOME=%JAVA_HOME%\jre
- echo Looking in: %J_HOME%\bin...
- if exist "%J_HOME%\bin\java.exe" goto gotJava
- set J_HOME=..\ibm-jre\jre
- echo Looking in: %J_HOME%\bin...
- if exist "%J_HOME%\bin\java.exe" goto gotJava
- echo Error could not find a JRE.
- goto done
- :uselocal
- REM remove -java:local from parameter list
- set FULLPARAMS=%FULLPARAMS:~12%
- set J_HOME=..\ibm-jre\jre
- echo Looking in: %J_HOME%\bin...
- if exist "%J_HOME%\bin\java.exe" goto gotJava
- echo Error could not find a JRE.
- goto done
- :gotJava
- rem ----- Execute The Requested Command ---------------------------------------
- echo Executing:
- echo %J_HOME%\bin\java.exe %J_OPTS% -jar ThirdPartyCertificateTool.jar %FULLPARAMS%
- "%J_HOME%\bin\java.exe" %J_OPTS% %CAMCRYPTO_OPTS% -Dorg.slf4j.simpleLogger.defaultLogLevel=ERROR -jar ThirdPartyCertificateTool.jar %FULLPARAMS%
- :done
|