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