Author: drewbai
Date: Wed Apr 29 19:00:27 2009
New Revision: 769875
URL: http://svn.apache.org/viewvc?rev=769875&view=rev
Log:
Apply STONEHENGE-33-v2.patch for Ben
Adds mode option for release or debug version
Thanks for the patch, Ben!
Modified:
incubator/stonehenge/trunk/stocktrader/dotnet/RunServices.bat
Modified: incubator/stonehenge/trunk/stocktrader/dotnet/RunServices.bat
URL:
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/RunServices.bat?rev=769875&r1=769874&r2=769875&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/RunServices.bat (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/RunServices.bat Wed Apr 29
19:00:27 2009
@@ -1,3 +1,35 @@
-START %~dp0order_processor\bin\debug\Trade.orderProcessorConsoleHost.exe
-START %~dp0business_service\bin\debug\Trade.BusinessServiceConsole.exe
+...@echo off
+...@echo ============================================
+...@echo StoneHenge WCF Service Host Menu
+...@echo --------------------------------------------
+...@echo 1 = Run Services in Debug Mode
+...@echo 2 = Run Services in Release Mode
+...@echo.
+
+
+SET runMode=debug
+SET errorOccurred=0
+choice /c:12 /n
+if errorlevel 2 SET runMode=release
+
+:OpsHost
+IF NOT EXIST
%~dp0order_processor\bin\%runMode%\Trade.orderProcessorConsoleHost.exe GOTO
NoOpsHost
+START %~dp0order_processor\bin\%runMode%\Trade.orderProcessorConsoleHost.exe
+
+:BsHost
+IF NOT EXIST
%~dp0business_service\bin\%runMode%\Trade.BusinessServiceConsole.exe GOTO
NoBsHost
+START %~dp0business_service\bin\%runMode%\Trade.BusinessServiceConsole.exe
+GOTO Complete
+
+:NoOpsHost
+...@echo No Order Processor Host available in %runMode%
+SET errorOccurred=1
+GOTO BsHost
+
+:NoBsHost
+...@echo No Business Service Host available in %runMode%
+SET errorOccurred=1
+
+:Complete
+IF %errorOccurred%==1 PAUSE