12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- rem Licensed Materials - Property of IBM
- rem
- rem IBM Cognos Products: ps
- rem
- rem (C) Copyright IBM Corp. 2005, 2016
- rem
- rem US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- rem
- @echo off
- :: upgrade system.xml
- echo Only execute this script, if the automatic system.xml upgrade failed.
- echo Please follow the instructions in the system_upgrade.txt file before proceeding.
- set /p a= Do you wish to proceed (y/n)?
- if not %a%==y goto skipupgrade
- set HERE=%CD%
- if not "%JAVA_HOME%" == "" goto javahomeset
- set JAVA_HOME=%HERE%\..\..\jre
- :javahomeset
- set P2PD_WEBINF=%HERE%\..\..\webapps\p2pd\WEB-INF\lib
- if exist "%P2PD_WEBINF%" goto p2pdset
- set P2PD_WEBINF=%HERE%\..\..\bin
- if not exist "%P2PD_WEBINF%" goto nop2pwebinf
- :p2pdset
- set CP="%JAVA_HOME%\lib\tools.jar";"%P2PD_WEBINF%\jdxslt.jar"
- copy system.xml systemv1.xml
- "%JAVA_HOME%\bin\java" -classpath %CP% jd.xml.xslt.Stylesheet -out system.xml systemv1.xml system_upgrade.xslt
- cd portal
- copy system.xml systemv1.xml
- "%JAVA_HOME%\bin\java" -classpath %CP% jd.xml.xslt.Stylesheet -out system.xml systemv1.xml system_upgrade.xslt
- cd ..\qs
- copy system.xml systemv1.xml
- "%JAVA_HOME%\bin\java" -classpath %CP% jd.xml.xslt.Stylesheet -out system.xml systemv1.xml system_upgrade.xslt
- cd ..
- goto done
- :nop2pwebinf
- echo Unable to locate the P2PD web-inf directory %P2PD_WEBINF% or the bin directory.
- goto done
- :skipupgrade
- echo Upgrade skipped
- goto done
- :done
|