@rem @rem Licensed Materials - Property of IBM @rem @rem BI and PM: qs @rem @rem (C) Copyright IBM Corp. 2001, 2017 @rem @rem US Government Users Restricted Rights - Use, duplication or disclosure @rem restricted by GSA ADP Schedule Contract with IBM Corp. @rem rem Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved. rem Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated). @echo off REM $Header: $ REM $DateTime: $ REM $Change: $ REM $Author: parentd $ REM REM Purpose: REM This script file upgrades a Query Studio mini-query REM Parameter %1 The mini-query file name (.xml will automatically be appended) REM Parameter %2 The source directory where the mini-query exists REM Parameter %3 The destination directory where the mini-query is to be written setlocal set REPORTNET_JRE=..\bin\jre\1.5.0 set UPGRADE_LIB_DIR=..\webapps\p2pd\WEB-INF\lib if not defined JAVA_HOME ( set "JAVA_HOME=%REPORTNET_JRE%" echo Setting JAVA_HOME to %REPORTNET_JRE% ) else ( echo Using predefined JAVA_HOME %JAVA_HOME% ) set "CLASSPATH=.\jdxslt.jar;.\xalan.jar;.\xml-apis.jar;.\xercesImpl.jar;%JAVA_HOME%\lib\rt.jar;.\qfwV4toV5J.jar;.\cclcfgapi.jar;.\CognosIPF.jar;.\cclcoreutil.jar;.\log4j-1.2.8.jar;%UPGRADE_LIB_DIR%\CognosCMPlugin.jar;%UPGRADE_LIB_DIR%\CognosCM.jar;" set "theJavaExe=%JAVA_HOME%\bin\java.exe" if not exist "%theJavaExe%" ( echo Can not find %theJavaExe% exit /b 55 ) %theJavaExe% -cp "%CLASSPATH%" com.cognos.cm.plugin.qs.QSUpgradeMiniQuery %1 %2 %3 %4 %5 %6 %7 %8 %9 exit /b %ERRORLEVEL%