Advertisement
Guest User

Untitled

a guest
Sep 9th, 2016
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.45 KB | None | 0 0
  1. @echo off
  2. chcp 65001>nul
  3. setlocal enabledelayedexpansion
  4.  
  5. :defaultconfig
  6. set SVCUTIL="C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\SvcUtil.exe"
  7. set OUTDIR=_GISAPI
  8. set LIBDIR=lib
  9.  
  10.  
  11. if not exist %OUTDIR% (
  12.     echo Создание каталога %OUTDIR%
  13.     mkdir %OUTDIR%
  14. )
  15.  
  16. if exist %OUTDIR%\*.* (
  17.     echo Очистка каталога %OUTDIR%
  18.     del /S /Q %OUTDIR%\*.*
  19. )
  20.  
  21. call :genFile Bills bills
  22. call :genFile CapitalRepair capital-repair
  23. call :genFile DeviceMetering device-metering
  24. ::call :genFile Disclosure disclosure
  25. call :genFile Fas fas
  26. call :genFile HouseManagement house-management
  27. call :genFile Infrastructure infrastructure
  28. call :genFile Inspection inspection
  29. call :genFile Licenses licenses
  30. call :genFile Nsi nsi
  31. call :genFile NsiCommon nsi-common
  32. call :genFile OrganizationsRegistry organizations-registry
  33. call :genFile OrganizationsRegistryCommon organizations-registry-common
  34. call :genFile Payment payment
  35. call :genFile Services services
  36. ::call :genFile SignatureTest signature-test
  37.  
  38. :exit
  39. exit /b 0
  40.  
  41.  
  42. :genFile
  43. ::%1 - ServiceName
  44. ::%2 - Service file part name
  45.  
  46. if exist %2\hcs-%2-service.wsdl (
  47.     %SVCUTIL% %2\hcs-%2-service.wsdl %2\*.xsd %LIBDIR%\*.xsd  /mc /syncOnly /wrapped /directory:%OUTDIR% /noConfig /noLogo /n:*,Gis.%1Service /out:%1Service.cs
  48. )
  49.  
  50. if exist %2\hcs-%2-service-async.wsdl (
  51.     %SVCUTIL% %2\hcs-%2-service-async.wsdl %2\*.xsd %LIBDIR%\*.xsd  /mc /syncOnly /wrapped /directory:%OUTDIR%\Async /noConfig /noLogo /n:*,Gis.%1Service /out:%1Service.cs
  52. )
  53.  
  54.  
  55. exit /b 0
  56.  
  57.  
  58.  
  59.  
  60. :genFile_old
  61. ::%1 - ServiceName
  62. ::%2 - Service file part name
  63.  
  64. if exist hcs-%2-service-?.?.?.?.wsdl (
  65.     %SVCUTIL% hcs-%2-service-?.?.?.?.wsdl *.xsd /mc /syncOnly /wrapped /directory:%OUTDIR% /noConfig /noLogo /n:*,Gis.%1Service /out:%1Service.cs
  66. )
  67.  
  68. if exist hcs-%2-service-async-?.?.?.?.wsdl (
  69.    %SVCUTIL% hcs-%2-service-async-?.?.?.?.wsdl *.xsd /mc /syncOnly  /wrapped /directory:%OUTDIR%\Async /noConfig /noLogo /n:*,Gis.%1Service.Async /out:%1ServiceAsync.cs
  70. )
  71.  
  72. if exist hcs-%2-service-??.?.?.?.wsdl (
  73.     %SVCUTIL% hcs-%2-service-??.?.?.?.wsdl *.xsd /mc /syncOnly /wrapped /directory:%OUTDIR% /noConfig /noLogo /n:*,Gis.%1Service /out:%1Service.cs
  74. )
  75.  
  76. if exist hcs-%2-service-async-??.?.?.?.wsdl (
  77.    %SVCUTIL% hcs-%2-service-async-??.?.?.?.wsdl *.xsd /mc /syncOnly  /wrapped /directory:%OUTDIR%\Async /noConfig /noLogo /n:*,Gis.%1Service.Async /out:%1ServiceAsync.cs
  78. )
  79.  
  80. exit /b 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement