1rem ************************************************************* 2rem 3rem Licensed to the Apache Software Foundation (ASF) under one 4rem or more contributor license agreements. See the NOTICE file 5rem distributed with this work for additional information 6rem regarding copyright ownership. The ASF licenses this file 7rem to you under the Apache License, Version 2.0 (the 8rem "License"); you may not use this file except in compliance 9rem with the License. You may obtain a copy of the License at 10rem 11rem http://www.apache.org/licenses/LICENSE-2.0 12rem 13rem Unless required by applicable law or agreed to in writing, 14rem software distributed under the License is distributed on an 15rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16rem KIND, either express or implied. See the License for the 17rem specific language governing permissions and limitations 18rem under the License. 19rem 20rem ************************************************************* 21call env_win.bat 22 23@echo off 24echo ============================================= 25echo step - 1 create a temporary folder 26echo ============================================= 27@echo on 28%TEMP_DRIVE% 29cd / 30mkdir %TEMP_FOLDER% 31 32@echo off 33echo ============================================= 34echo step - 2 copy the xsecsim.rdb 35echo ============================================= 36@echo on 37 38cp %WS_PATH%/xmlsecurity/wntmsci8.pro/bin/xsecsim.rdb %TEMP_DRIVE%/%TEMP_FOLDER%/. 39 40@echo off 41echo ============================================= 42echo step - 3 copy services.rdb and types.rdb 43echo ============================================= 44@echo on 45 46cp %SO_DRIVE%/%SO_PATH%/program/services.rdb %TEMP_DRIVE%/%TEMP_FOLDER%/. 47cp %SO_DRIVE%/%SO_PATH%/program/types.rdb %TEMP_DRIVE%/%TEMP_FOLDER%/. 48 49@echo off 50echo ============================================= 51echo step - 4 add types.rdb, xsecsim.rdb to services.rdb 52echo ============================================= 53@echo on 54 55cd %TEMP_FOLDER% 56regmerge services.rdb / types.rdb 57regmerge services.rdb / xsecsim.rdb 58 59@echo off 60echo ============================================= 61echo step - 5 register new component 62echo ============================================= 63@echo on 64 65mkdir windows.plt 66cp %WS_PATH%/xmlsecurity/wntmsci8.pro/bin/xsec_sim.dll windows.plt/. 67cp %WS_PATH%/xmlsecurity/wntmsci8.pro/bin/xsecsim.rdb windows.plt/. 68cp %WS_PATH%/xmlsecurity/wntmsci8.pro/class/jflatfilter.jar windows.plt/. 69zip xsec_sim.zip windows.plt\*.* 70rm -R windows.plt 71 72%SO_DRIVE% 73cd %SO_DRIVE%/%SO_PATH%/program 74pkgchk -s %TEMP_DRIVE%/%TEMP_FOLDER%/xsec_sim.zip 75 76%TEMP_DRIVE% 77 78@echo off 79echo ============================================= 80echo step - 6 copy dynamic libraries 81echo ============================================= 82@echo on 83 84cp %SO_DRIVE%/%SO_PATH%/program/*.dll ./. 85 86@echo off 87echo ============================================= 88echo step - 7 copy testtool program 89echo ============================================= 90@echo on 91 92cp %WS_PATH%/xmlsecurity/wntmsci8.pro/bin/testtool.exe ./. 93 94@echo off 95echo ============================================= 96echo step - 8 start OpenOffice 97echo ============================================= 98@echo on 99 100@echo off 101echo please start up OpenOffice with "-accept=socket,host=0,port=2002;urp;" 102pause Press Enter when finished... 103@echo on 104 105@echo off 106echo ============================================= 107echo step - 9 run the testtool program 108echo ============================================= 109@echo on 110 111mkdir examples 112cd examples 113cp %WS_PATH%/xmlsecurity/tools/examples/warmup.xml ./. 114cp %WS_PATH%/xmlsecurity/tools/examples/sign-0.xml ./. 115cp %WS_PATH%/xmlsecurity/tools/examples/sign-1.xml ./. 116cp %WS_PATH%/xmlsecurity/tools/examples/sign-2.xml ./. 117cp %WS_PATH%/xmlsecurity/tools/examples/sign-3.xml ./. 118cp %WS_PATH%/xmlsecurity/tools/examples/sign-4.xml ./. 119cp %WS_PATH%/xmlsecurity/tools/examples/sign-5.xml ./. 120cd .. 121cp %WS_PATH%/xmlsecurity/tools/examples/eval_import.txt ./. 122cp %WS_PATH%/xmlsecurity/tools/examples/eval_export.txt ./. 123 124testtool %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 125 126@echo off 127echo ============================================= 128echo step - 10 stop OpenOffice 129echo ============================================= 130@echo on 131 132@echo off 133echo please stop the OpenOffice application 134pause Press Enter when finished... 135@echo on 136 137@echo off 138echo ============================================= 139echo step - 11 remove new component 140echo ============================================= 141@echo on 142 143rm %SO_DRIVE%/%SO_PATH%/user/uno_packages/xsec_sim.zip 144%SO_DRIVE% 145cd %SO_DRIVE%/%SO_PATH%/program 146 147pkgchk -s -d xsec_sim.zip 148 149%TEMP_DRIVE% 150 151@echo off 152echo ============================================= 153echo step - 12 remove the temporary folder 154echo ============================================= 155@echo on 156 157cd .. 158rm -R %TEMP_FOLDER% 159