1*cdf0e10cSrcweircall env_win.bat 2*cdf0e10cSrcweir 3*cdf0e10cSrcweir@echo off 4*cdf0e10cSrcweirecho ============================================= 5*cdf0e10cSrcweirecho step - 1 create a temporary folder 6*cdf0e10cSrcweirecho ============================================= 7*cdf0e10cSrcweir@echo on 8*cdf0e10cSrcweir%TEMP_DRIVE% 9*cdf0e10cSrcweircd / 10*cdf0e10cSrcweirmkdir %TEMP_FOLDER% 11*cdf0e10cSrcweir 12*cdf0e10cSrcweir@echo off 13*cdf0e10cSrcweirecho ============================================= 14*cdf0e10cSrcweirecho step - 2 copy the xsecsim.rdb 15*cdf0e10cSrcweirecho ============================================= 16*cdf0e10cSrcweir@echo on 17*cdf0e10cSrcweir 18*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/wntmsci8.pro/bin/xsecsim.rdb %TEMP_DRIVE%/%TEMP_FOLDER%/. 19*cdf0e10cSrcweir 20*cdf0e10cSrcweir@echo off 21*cdf0e10cSrcweirecho ============================================= 22*cdf0e10cSrcweirecho step - 3 copy services.rdb and types.rdb 23*cdf0e10cSrcweirecho ============================================= 24*cdf0e10cSrcweir@echo on 25*cdf0e10cSrcweir 26*cdf0e10cSrcweircp %SO_DRIVE%/%SO_PATH%/program/services.rdb %TEMP_DRIVE%/%TEMP_FOLDER%/. 27*cdf0e10cSrcweircp %SO_DRIVE%/%SO_PATH%/program/types.rdb %TEMP_DRIVE%/%TEMP_FOLDER%/. 28*cdf0e10cSrcweir 29*cdf0e10cSrcweir@echo off 30*cdf0e10cSrcweirecho ============================================= 31*cdf0e10cSrcweirecho step - 4 add types.rdb, xsecsim.rdb to services.rdb 32*cdf0e10cSrcweirecho ============================================= 33*cdf0e10cSrcweir@echo on 34*cdf0e10cSrcweir 35*cdf0e10cSrcweircd %TEMP_FOLDER% 36*cdf0e10cSrcweirregmerge services.rdb / types.rdb 37*cdf0e10cSrcweirregmerge services.rdb / xsecsim.rdb 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir@echo off 40*cdf0e10cSrcweirecho ============================================= 41*cdf0e10cSrcweirecho step - 5 register new component 42*cdf0e10cSrcweirecho ============================================= 43*cdf0e10cSrcweir@echo on 44*cdf0e10cSrcweir 45*cdf0e10cSrcweirmkdir windows.plt 46*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/wntmsci8.pro/bin/xsec_sim.dll windows.plt/. 47*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/wntmsci8.pro/bin/xsecsim.rdb windows.plt/. 48*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/wntmsci8.pro/class/jflatfilter.jar windows.plt/. 49*cdf0e10cSrcweirzip xsec_sim.zip windows.plt\*.* 50*cdf0e10cSrcweirrm -R windows.plt 51*cdf0e10cSrcweir 52*cdf0e10cSrcweir%SO_DRIVE% 53*cdf0e10cSrcweircd %SO_DRIVE%/%SO_PATH%/program 54*cdf0e10cSrcweirpkgchk -s %TEMP_DRIVE%/%TEMP_FOLDER%/xsec_sim.zip 55*cdf0e10cSrcweir 56*cdf0e10cSrcweir%TEMP_DRIVE% 57*cdf0e10cSrcweir 58*cdf0e10cSrcweir@echo off 59*cdf0e10cSrcweirecho ============================================= 60*cdf0e10cSrcweirecho step - 6 copy dynamic libraries 61*cdf0e10cSrcweirecho ============================================= 62*cdf0e10cSrcweir@echo on 63*cdf0e10cSrcweir 64*cdf0e10cSrcweircp %SO_DRIVE%/%SO_PATH%/program/*.dll ./. 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir@echo off 67*cdf0e10cSrcweirecho ============================================= 68*cdf0e10cSrcweirecho step - 7 copy testtool program 69*cdf0e10cSrcweirecho ============================================= 70*cdf0e10cSrcweir@echo on 71*cdf0e10cSrcweir 72*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/wntmsci8.pro/bin/testtool.exe ./. 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir@echo off 75*cdf0e10cSrcweirecho ============================================= 76*cdf0e10cSrcweirecho step - 8 start OpenOffice 77*cdf0e10cSrcweirecho ============================================= 78*cdf0e10cSrcweir@echo on 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir@echo off 81*cdf0e10cSrcweirecho please start up OpenOffice with "-accept=socket,host=0,port=2002;urp;" 82*cdf0e10cSrcweirpause Press Enter when finished... 83*cdf0e10cSrcweir@echo on 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir@echo off 86*cdf0e10cSrcweirecho ============================================= 87*cdf0e10cSrcweirecho step - 9 run the testtool program 88*cdf0e10cSrcweirecho ============================================= 89*cdf0e10cSrcweir@echo on 90*cdf0e10cSrcweir 91*cdf0e10cSrcweirmkdir examples 92*cdf0e10cSrcweircd examples 93*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/tools/examples/warmup.xml ./. 94*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/tools/examples/sign-0.xml ./. 95*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/tools/examples/sign-1.xml ./. 96*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/tools/examples/sign-2.xml ./. 97*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/tools/examples/sign-3.xml ./. 98*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/tools/examples/sign-4.xml ./. 99*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/tools/examples/sign-5.xml ./. 100*cdf0e10cSrcweircd .. 101*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/tools/examples/eval_import.txt ./. 102*cdf0e10cSrcweircp %WS_PATH%/xmlsecurity/tools/examples/eval_export.txt ./. 103*cdf0e10cSrcweir 104*cdf0e10cSrcweirtesttool %WS_PATH%/xmlsecurity/tools/cryptoken/jks/testToken.jks %WS_PATH%/xmlsecurity/tools/cryptoken/nss %TEMP_DRIVE%/%TEMP_FOLDER%/eval_export.txt %TEMP_DRIVE%/%TEMP_FOLDER%/eval_import.txt 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir@echo off 107*cdf0e10cSrcweirecho ============================================= 108*cdf0e10cSrcweirecho step - 10 stop OpenOffice 109*cdf0e10cSrcweirecho ============================================= 110*cdf0e10cSrcweir@echo on 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir@echo off 113*cdf0e10cSrcweirecho please stop the OpenOffice application 114*cdf0e10cSrcweirpause Press Enter when finished... 115*cdf0e10cSrcweir@echo on 116*cdf0e10cSrcweir 117*cdf0e10cSrcweir@echo off 118*cdf0e10cSrcweirecho ============================================= 119*cdf0e10cSrcweirecho step - 11 remove new component 120*cdf0e10cSrcweirecho ============================================= 121*cdf0e10cSrcweir@echo on 122*cdf0e10cSrcweir 123*cdf0e10cSrcweirrm %SO_DRIVE%/%SO_PATH%/user/uno_packages/xsec_sim.zip 124*cdf0e10cSrcweir%SO_DRIVE% 125*cdf0e10cSrcweircd %SO_DRIVE%/%SO_PATH%/program 126*cdf0e10cSrcweir 127*cdf0e10cSrcweirpkgchk -s -d xsec_sim.zip 128*cdf0e10cSrcweir 129*cdf0e10cSrcweir%TEMP_DRIVE% 130*cdf0e10cSrcweir 131*cdf0e10cSrcweir@echo off 132*cdf0e10cSrcweirecho ============================================= 133*cdf0e10cSrcweirecho step - 12 remove the temporary folder 134*cdf0e10cSrcweirecho ============================================= 135*cdf0e10cSrcweir@echo on 136*cdf0e10cSrcweir 137*cdf0e10cSrcweircd .. 138*cdf0e10cSrcweirrm -R %TEMP_FOLDER% 139