[mapguide-commits] r6722 - branches/2.4/MgDev
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu May 31 09:32:38 PDT 2012
Author: jng
Date: 2012-05-31 09:32:37 -0700 (Thu, 31 May 2012)
New Revision: 6722
Modified:
branches/2.4/MgDev/build_desktop.bat
Log:
Break away from build if any msbuild fails
Modified: branches/2.4/MgDev/build_desktop.bat
===================================================================
--- branches/2.4/MgDev/build_desktop.bat 2012-05-31 16:31:06 UTC (rev 6721)
+++ branches/2.4/MgDev/build_desktop.bat 2012-05-31 16:32:37 UTC (rev 6722)
@@ -24,8 +24,17 @@
pushd Desktop
echo [build]: Desktop API (%DESKTOP_PLATFORM_UNMANAGED%)
%MSBUILD% /p:Platform=%DESKTOP_PLATFORM_UNMANAGED% MgDesktopApi%VS_SLN_SUFFIX%.sln
+if "%errorlevel%"=="1" goto error
echo [build]: .net components (%DESKTOP_PLATFORM%)
%MSBUILD% /p:Platform=%DESKTOP_PLATFORM% MgDesktopDotNet%VS_SLN_SUFFIX%.sln
+if "%errorlevel%"=="1" goto error
popd
echo [install]: binaries
-%XCOPY% "Desktop\bin\%TYPEBUILD%" "%MG_OUTPUT_DESKTOP%" /EXCLUDE:svn_excludes.txt+%CONFIGURATION%_excludes.txt
\ No newline at end of file
+%XCOPY% "Desktop\bin\%TYPEBUILD%" "%MG_OUTPUT_DESKTOP%" /EXCLUDE:svn_excludes.txt+%CONFIGURATION%_excludes.txt
+goto quit
+
+:error
+echo [ERROR]: There was an error building the component
+exit /B 1
+
+:quit
\ No newline at end of file
More information about the mapguide-commits
mailing list