From 423df156c174e10641e73dfc7c2492bf567b5cb1 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Fri, 8 Jul 2016 11:37:48 +0200 Subject: [PATCH] Makes the build output only show warnings and errors so it's easier to pinpoint problems --- .gitignore | 1 + build/Build.bat | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 113b207285..087b803c47 100644 --- a/.gitignore +++ b/.gitignore @@ -142,3 +142,4 @@ apidocs/api/* build/docs.zip build/ui-docs.zip build/csharp-docs.zip +build/msbuild.log diff --git a/build/Build.bat b/build/Build.bat index 995cef6a48..85ccb34705 100644 --- a/build/Build.bat +++ b/build/Build.bat @@ -33,14 +33,25 @@ DEL /F /Q webpihash.txt ECHO Making sure Git is in the path so that the build can succeed CALL InstallGit.cmd +REM Adding the default Git path so that if it's installed it can actually be found +REM This is necessary because SETLOCAL is on in InstallGit.cmd so that one might find Git, +REM but the path setting is lost due to SETLOCAL +path=C:\Program Files (x86)\Git\cmd;C:\Program Files\Git\cmd;%PATH% + ECHO Performing MSBuild and producing Umbraco binaries zip files +ECHO. +ECHO Performing MSBuild and producing Umbraco binaries zip files +ECHO This takes a few minutes and logging is set to report warnigns +ECHO and errors only so it might seems like nothing is happening for a while. +ECHO You can check the msbuild.log file for progress +ECHO. SET nuGetFolder=%CD%\..\src\packages\ ..\src\.nuget\NuGet.exe restore ..\src\Umbraco.Core\project.json -OutputDirectory %nuGetFolder% -Verbosity quiet ..\src\.nuget\NuGet.exe restore ..\src\umbraco.datalayer\packages.config -OutputDirectory %nuGetFolder% -Verbosity quiet ..\src\.nuget\NuGet.exe restore ..\src\Umbraco.Web\project.json -OutputDirectory %nuGetFolder% -Verbosity quiet ..\src\.nuget\NuGet.exe restore ..\src\Umbraco.Web.UI\packages.config -OutputDirectory %nuGetFolder% -Verbosity quiet -"%ProgramFiles(x86)%"\MSBuild\14.0\Bin\MSBuild.exe "Build.proj" /p:BUILD_RELEASE=%release% /p:BUILD_COMMENT=%comment% /verbosity:minimal +"%ProgramFiles(x86)%"\MSBuild\14.0\Bin\MSBuild.exe "Build.proj" /p:BUILD_RELEASE=%release% /p:BUILD_COMMENT=%comment% /p:NugetPackagesDirectory=%nuGetFolder% /consoleloggerparameters:Summary;ErrorsOnly;WarningsOnly /fileLogger ECHO Setting node_modules folder to hidden to prevent VS13 from crashing on it while loading the websites project attrib +h ..\src\Umbraco.Web.UI.Client\node_modules