Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1. SETLOCAL ENABLEEXTENSIONS
  2.  
  3. echo off
  4.  
  5. REM Cria links simbolicos para os modulos do OSP e para os arquivos
  6. REM mw-modules-config e mw-validation-config que são necessários para que o MetaWizard
  7. REM mostre esses modulos.
  8.  
  9. REM Execute como adminstrador
  10.  
  11. REM Pode definir seus diretorios diretamente nessas variaveis DEST e ORIG
  12. set DEST=C:\Desenvolvimento\GP\meta\wizard
  13. set ORIG=C:\Desenvolvimento\GP\feature\gp
  14. set opcao=""
  15.  
  16. echo Digite opcao "1" para o diretorio de instalacao padrao do MetaWizard e repositorio ETICs. Exemplo:
  17. echo MetaWizard: "%DEST%"
  18. echo Repositorio ETICs: "%ORIG%"
  19. echo Digite a opcao "2" p/ inserir os diretorios manualmente:
  20. set /p opcao=
  21. IF [%opcao%] EQU [2] (GOTO OPCAO1) ELSE (GOTO OPCAO2)
  22.  
  23. :OPCAO1
  24. set /p DEST="Digite o diretorio da pasta wizard:"
  25. set /p ORIG="Digite o repositorio do projeto ETICs:"
  26.  
  27. :OPCAO2
  28. del %DEST%\config\mw-modules-config.xml
  29. del %DEST%\config\mw-validation-config.xml
  30. echo.
  31. mklink %DEST%\config\mw-modules-config.xml %ORIG%\etics\fontes\components\model\src\main\config\mw-modules-config.xml
  32. @if NOT (%ERRORLEVEL%) == (0) @goto error
  33. echo.
  34. mklink %DEST%\config\mw-validation-config.xml %ORIG%\etics\fontes\components\model\src\main\config\mw-validation-config.xml
  35. @if NOT (%ERRORLEVEL%) == (0) @goto error
  36. echo.
  37. set DEST=%DEST%\modules
  38.  
  39. rmdir /s /q %DEST%
  40. @if NOT (%ERRORLEVEL%) == (0) @goto error
  41.  
  42.  
  43. mkdir %DEST%\CPqD-OSP-Eng
  44. mkdir %DEST%\CPqD-ISP-Inv
  45. mkdir %DEST%\CPqD-OSP-Report
  46. mkdir %DEST%\CPqD-Feasibility
  47. mkdir %DEST%\CPqD-Oper-Adm-Settings
  48. mkdir %DEST%\CPqD-Oper
  49. mkdir %DEST%\CPqD-OperFct
  50. mkdir %DEST%\CPqD-Adm
  51.  
  52. @if NOT (%ERRORLEVEL%) == (0) @goto error
  53.  
  54. mklink /D %DEST%\CPqD-OSP-Eng\xml %ORIG%\eng\fontes\components\model\src\main\xml
  55. @if NOT (%ERRORLEVEL%) == (0) @goto error
  56.  
  57. echo.
  58.  
  59. mklink /D %DEST%\CPqD-OSP-Eng\labels %ORIG%\eng\fontes\components\model\src\main\labels
  60. @if NOT (%ERRORLEVEL%) == (0) @goto error
  61. echo.
  62. mklink /D %DEST%\CPqD-ISP-Inv\xml %ORIG%\isp\fontes\components\model\src\main\xml\app
  63. @if NOT (%ERRORLEVEL%) == (0) @goto error
  64. echo.
  65. mklink /D %DEST%\CPqD-ISP-Inv\labels %ORIG%\isp\fontes\components\model\src\main\xml\labels
  66. @if NOT (%ERRORLEVEL%) == (0) @goto error
  67. echo.
  68. mklink /D %DEST%\CPqD-OSP-Report\xml %ORIG%\osp\fontes\components\webreport\model\src\main\xml
  69. @if NOT (%ERRORLEVEL%) == (0) @goto error
  70. echo.
  71. mklink /D %DEST%\CPqD-OSP-Report\labels %ORIG%\osp\fontes\components\webreport\model\src\main\labels
  72. @if NOT (%ERRORLEVEL%) == (0) @goto error
  73. echo.
  74. mklink /D %DEST%\CPqD-Feasibility\xml %ORIG%\feasibility\fontes\components\model\src\main\xml
  75. @if NOT (%ERRORLEVEL%) == (0) @goto error
  76. echo.
  77. mklink /D %DEST%\CPqD-Feasibility\labels %ORIG%\feasibility\fontes\components\model\src\main\labels
  78. @if NOT (%ERRORLEVEL%) == (0) @goto error
  79. echo.
  80. mklink /D %DEST%\CPqD-Oper-Adm-Settings\xml %ORIG%\oper\fontes\components\settings\model\src\main\xml
  81. @if NOT (%ERRORLEVEL%) == (0) @goto error
  82. echo.
  83. mklink /D %DEST%\CPqD-Oper-Adm-Settings\labels %ORIG%\oper\fontes\components\settings\model\src\main\labels
  84. @if NOT (%ERRORLEVEL%) == (0) @goto error
  85. echo.
  86. mklink /D %DEST%\CPqD-Oper\xml %ORIG%\oper\fontes\components\operweb\model\src\main\xml
  87. @if NOT (%ERRORLEVEL%) == (0) @goto error
  88. echo.
  89. mklink /D %DEST%\CPqD-Oper\labels %ORIG%\oper\fontes\components\operweb\model\src\main\labels
  90. @if NOT (%ERRORLEVEL%) == (0) @goto error
  91. echo.
  92. mklink /D %DEST%\CPqD-OperFct\xml %ORIG%\oper\fontes\components\fctweb\model\src\main\xml
  93. @if NOT (%ERRORLEVEL%) == (0) @goto error
  94. echo.
  95. mklink /D %DEST%\CPqD-OperFct\labels %ORIG%\oper\fontes\components\fctweb\model\src\main\labels
  96. @if NOT (%ERRORLEVEL%) == (0) @goto error
  97. echo.
  98. mklink /D %DEST%\CPqD-Adm\xml %ORIG%\application\implementacao\admweb\model\src\main\xml
  99. @if NOT (%ERRORLEVEL%) == (0) @goto error
  100. echo.
  101. mklink /D %DEST%\CPqD-Adm\labels %ORIG%\application\implementacao\admweb\model\src\main\labels
  102. @if NOT (%ERRORLEVEL%) == (0) @goto error
  103.  
  104. :done
  105. color 9f
  106. echo -
  107. echo Fim de processamento - %DATE%, %TIME%
  108. echo Sucesso ao criar os links simbolicos dos modulos do MetaWizard.
  109. echo -
  110. pause
  111. @goto end
  112.  
  113. :error
  114. color cf
  115. echo Erro ao criar os links simbolicos.
  116. echo _
  117. pause
  118. @goto end
  119.  
  120. :end
  121. color
  122. echo %DEST%
  123. echo %ORIG%
  124. echo on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement