summaryrefslogtreecommitdiffstats
path: root/sca-cpp/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/runclient.cmd
blob: 1758d12ef57fd6c43c8d1e56088dcd415a46e87a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@echo off


@REM  Copyright 2006 The Apache Software Foundation or its licensors, as applicable.
@REM
@REM  Licensed under the Apache License, Version 2.0 (the "License");
@REM  you may not use this file except in compliance with the License.
@REM  You may obtain a copy of the License at
@REM
@REM     http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM  Unless required by applicable law or agreed to in writing, software
@REM  distributed under the License is distributed on an "AS IS" BASIS,
@REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@REM  See the License for the specific language governing permissions and
@REM  limitations under the License.

rem Runs the client after setting the SCA environment variables to use the
rem CalculatorSubsystem
setlocal

if "%AXIS2C_HOME%" == "" (
echo "AXIS2C_HOME not set"
goto end
)
echo using Axis2C: %AXIS2C_HOME%

if "%TUSCANY_SDOCPP%" == "" (
echo "TUSCANY_SDOCPP not set"
goto end
)
echo using TUSCANY_SDOCPP: %TUSCANY_SDOCPP%

if "%TUSCANY_SCACPP%" == "" (
echo "TUSCANY_SCACPP not set"
goto end
)
echo using TUSCANY_SCACPP: %TUSCANY_SCACPP%

set TUSCANY_SCACPP_SYSTEM_ROOT=%~d0%~p0\..\

rem Only need to specify the subsystem (and not the moduleComponent as well) because
rem there is only one moduleComponent in the subsystem - it is a very simple sample.
set TUSCANY_SCACPP_DEFAULT_MODULE=CalculatorSubsystem

rem Run the client

set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH%
Client.exe %*
:end
endlocal