Rev | Line | |
---|
[14726] | 1 | @ECHO OFF
|
---|
[8055] | 2 |
|
---|
[14726] | 3 | SET HOST=
|
---|
| 4 | SET GENERATECONFIG=
|
---|
[8055] | 5 |
|
---|
[14726] | 6 | ECHO.
|
---|
| 7 | ECHO *******************************************************************************************
|
---|
[8055] | 8 |
|
---|
[14726] | 9 | SET /P HOST=Which host should be used? [services.heuristiclab.com]:
|
---|
| 10 | IF "%HOST%"=="" SET HOST=services.heuristiclab.com
|
---|
[8055] | 11 |
|
---|
[14726] | 12 | SET /P GENERATECONFIG=Would you like to generate the configuration file? [y]:
|
---|
| 13 | IF "%GENERATECONFIG%"=="" SET GENERATECONFIG=y
|
---|
[8055] | 14 |
|
---|
[14726] | 15 | SET ARGS=http://%HOST%/OKB-3.3/QueryService.svc ^
|
---|
| 16 | /out:QueryServiceClient ^
|
---|
| 17 | /namespace:*,HeuristicLab.Clients.OKB.Query ^
|
---|
| 18 | /collectionType:System.Collections.Generic.List`1 ^
|
---|
| 19 | /targetClientVersion:Version35 ^
|
---|
| 20 | /enableDataBinding ^
|
---|
| 21 | /syncOnly
|
---|
| 22 |
|
---|
| 23 | IF "%GENERATECONFIG%"=="y" (
|
---|
| 24 | SET ARGS=%ARGS% /config:..\..\app.config /mergeConfig
|
---|
| 25 | ) ELSE (
|
---|
| 26 | SET ARGS=%ARGS% /noConfig
|
---|
| 27 | )
|
---|
| 28 |
|
---|
| 29 | ECHO.
|
---|
| 30 | ECHO Generating QueryService client
|
---|
| 31 | ECHO.
|
---|
| 32 |
|
---|
| 33 | SETLOCAL ENABLEDELAYEDEXPANSION
|
---|
| 34 | svcutil.exe %ARGS%
|
---|
| 35 | ENDLOCAL
|
---|
| 36 |
|
---|
| 37 | ECHO.
|
---|
| 38 | ECHO Generation of QueryService client finished.
|
---|
| 39 | ECHO *******************************************************************************************
|
---|
| 40 | ECHO.
|
---|
| 41 |
|
---|
| 42 | PAUSE
|
---|
Note: See
TracBrowser
for help on using the repository browser.