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