Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SETLOCAL ENABLEEXTENSIONS
- echo off
- REM Cria links simbolicos para os modulos do OSP e para os arquivos
- REM mw-modules-config e mw-validation-config que são necessários para que o MetaWizard
- REM mostre esses modulos.
- REM Execute como adminstrador
- REM Pode definir seus diretorios diretamente nessas variaveis DEST e ORIG
- set DEST=C:\Desenvolvimento\GP\meta\wizard
- set ORIG=C:\Desenvolvimento\GP\feature\gp
- set opcao=""
- echo Digite opcao "1" para o diretorio de instalacao padrao do MetaWizard e repositorio ETICs. Exemplo:
- echo MetaWizard: "%DEST%"
- echo Repositorio ETICs: "%ORIG%"
- echo Digite a opcao "2" p/ inserir os diretorios manualmente:
- set /p opcao=
- IF [%opcao%] EQU [2] (GOTO OPCAO1) ELSE (GOTO OPCAO2)
- :OPCAO1
- set /p DEST="Digite o diretorio da pasta wizard:"
- set /p ORIG="Digite o repositorio do projeto ETICs:"
- :OPCAO2
- del %DEST%\config\mw-modules-config.xml
- del %DEST%\config\mw-validation-config.xml
- echo.
- mklink %DEST%\config\mw-modules-config.xml %ORIG%\etics\fontes\components\model\src\main\config\mw-modules-config.xml
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink %DEST%\config\mw-validation-config.xml %ORIG%\etics\fontes\components\model\src\main\config\mw-validation-config.xml
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- set DEST=%DEST%\modules
- rmdir /s /q %DEST%
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- mkdir %DEST%\CPqD-OSP-Eng
- mkdir %DEST%\CPqD-ISP-Inv
- mkdir %DEST%\CPqD-OSP-Report
- mkdir %DEST%\CPqD-Feasibility
- mkdir %DEST%\CPqD-Oper-Adm-Settings
- mkdir %DEST%\CPqD-Oper
- mkdir %DEST%\CPqD-OperFct
- mkdir %DEST%\CPqD-Adm
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- mklink /D %DEST%\CPqD-OSP-Eng\xml %ORIG%\eng\fontes\components\model\src\main\xml
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-OSP-Eng\labels %ORIG%\eng\fontes\components\model\src\main\labels
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-ISP-Inv\xml %ORIG%\isp\fontes\components\model\src\main\xml\app
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-ISP-Inv\labels %ORIG%\isp\fontes\components\model\src\main\xml\labels
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-OSP-Report\xml %ORIG%\osp\fontes\components\webreport\model\src\main\xml
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-OSP-Report\labels %ORIG%\osp\fontes\components\webreport\model\src\main\labels
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-Feasibility\xml %ORIG%\feasibility\fontes\components\model\src\main\xml
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-Feasibility\labels %ORIG%\feasibility\fontes\components\model\src\main\labels
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-Oper-Adm-Settings\xml %ORIG%\oper\fontes\components\settings\model\src\main\xml
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-Oper-Adm-Settings\labels %ORIG%\oper\fontes\components\settings\model\src\main\labels
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-Oper\xml %ORIG%\oper\fontes\components\operweb\model\src\main\xml
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-Oper\labels %ORIG%\oper\fontes\components\operweb\model\src\main\labels
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-OperFct\xml %ORIG%\oper\fontes\components\fctweb\model\src\main\xml
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-OperFct\labels %ORIG%\oper\fontes\components\fctweb\model\src\main\labels
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-Adm\xml %ORIG%\application\implementacao\admweb\model\src\main\xml
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- echo.
- mklink /D %DEST%\CPqD-Adm\labels %ORIG%\application\implementacao\admweb\model\src\main\labels
- @if NOT (%ERRORLEVEL%) == (0) @goto error
- :done
- color 9f
- echo -
- echo Fim de processamento - %DATE%, %TIME%
- echo Sucesso ao criar os links simbolicos dos modulos do MetaWizard.
- echo -
- pause
- @goto end
- :error
- color cf
- echo Erro ao criar os links simbolicos.
- echo _
- pause
- @goto end
- :end
- color
- echo %DEST%
- echo %ORIG%
- echo on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement