Skip to content

Commit af89aeb

Browse files
author
Jon Nicholson
committed
Improved batch file by asking which projects are to be built, saving a lot of time on compiling project that haven't changed.
1 parent 9a5962c commit af89aeb

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Scripts/BAT/Code generation/CompileAllProjects.bat

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ set NUGET=nuget.exe
1010
set SPEC=..\..\..\Code\Sif3Specification\Sif3Specification.sln
1111
set FRAMEWORK=..\..\..\Code\Sif3Framework\Sif3Framework.sln
1212
set DEMOS=..\..\..\Code\Sif3FrameworkDemo\Sif3FrameworkDemo.sln
13+
set DOCS=..\..\..\Code\Sif3Documentation\Sif3Documentation.sln
1314

1415
set OUTPUT=output
1516

@@ -55,6 +56,12 @@ pause
5556
goto end
5657
:okDEMOS
5758

59+
if exist %DOCS% goto okDOCS
60+
echo Could not find : %DOCS%
61+
pause
62+
goto end
63+
:okDOCS
64+
5865
if exist %OUTPUT% goto okOUTPUT
5966
echo Creating folder : %OUTPUT%
6067
mkdir %OUTPUT%
@@ -65,21 +72,44 @@ rem == Start executable
6572
rem ============================================================================
6673

6774
title Compile demo apps
75+
76+
choice /c yn /m "Do you want to build the INFRASTRUCTURE and DATA MODEL projects? [Y] Yes or [N] no. "
77+
if errorlevel 2 goto buildFRAMEWORK
78+
6879
echo Rebuilding Infrastructure and Data Model projects
6980
echo ---
7081
%NUGET% restore %SPEC%
7182
%MSBUILD% %SPEC% /nologo /t:Rebuild /p:Configuration=Debug /p:Platform="Any CPU" /v:%VERBOSITY% > %OUTPUT%\build.idm.log
7283
echo.
84+
85+
:buildFRAMEWORK
7386
echo.
87+
choice /c yn /m "Do you want to build the FRAMEWORK projects? [Y] Yes or [N] no. "
88+
if errorlevel 2 goto buildDEMOS
7489
echo Rebuilding Framework projects
7590
echo ---
7691
%NUGET% restore %FRAMEWORK%
7792
%MSBUILD% %FRAMEWORK% /nologo /t:Rebuild /p:Configuration=Debug /p:Platform="Any CPU" /v:%VERBOSITY% > %OUTPUT%\build.framework.log
7893
echo.
94+
95+
:buildDEMOS
7996
echo.
97+
choice /c yn /m "Do you want to build DEMONSTRATION projects? [Y] Yes or [N] no. "
98+
if errorlevel 2 goto buildDOCS
8099
echo Rebuilding Demo projects
81100
echo ---
82101
%NUGET% restore %DEMOS%
83102
%MSBUILD% %DEMOS% /nologo /t:Rebuild /p:Configuration=Debug /p:Platform="Any CPU" /v:%VERBOSITY% > %OUTPUT%\build.demos.log
103+
echo.
104+
105+
:buildDOCS
106+
echo.
107+
choice /c yn /m "Do you want to build the framework's DOCUMENTATION? [Y] Yes or [N] no. "
108+
if errorlevel 2 goto end
109+
echo.
110+
echo Rebuilding Demo projects
111+
echo ---
112+
%NUGET% restore %DOCS%
113+
%MSBUILD% %DOCS% /nologo /t:Rebuild /p:Configuration=Debug /p:Platform="Any CPU" /v:%VERBOSITY% > %OUTPUT%\build.docs.log
84114
pause
85115
:end

0 commit comments

Comments
 (0)