Cos now I feel I am doing something wrong. Here is my batch file that
I created so that I could compile AR using nant which would run the
unit tests also.

Thanks.

Vijay

PS: Batch file is pasted below


@echo off

title ActiveRecord build

setlocal

net start msdtc

set PATH_BIN=%~dp0

set base=%PATH_BIN%AR

set base_DP2=%PATH_BIN%\AR\Tools\Castle.DynamicProxy2

set PATH=%PATH%;%base%\SharedLibs\build\NAnt\bin
set PATH=%PATH%;%base%\SharedLibs\build\NUnit\bin

cd %base%

for %%a in ( bin build ) do rmdir /q /s %base%\%%a
for %%a in ( bin ) do mkdir %base%\%%a

set DEF_NH_DIALECT=-D:ar.dialect=NHibernate.Dialect.MsSql2005Dialect
set DEF_NH_DRIVER=-
D:ar.connection.driver_class=NHibernate.Driver.SqlClientDriver
set DEF_CONN_1=-D:ar.connection.connection_string.1="Data Source=.
\SQLEXPRESS;Initial Catalog=test;Integrated Security=SSPI;"
set DEF_CONN_2=-D:ar.connection.connection_string.2="Data Source=.
\SQLEXPRESS;Initial Catalog=test2;Integrated Security=SSPI;"

set DEF_MISC=-l:%TEMP%\build.log.txt -t:net-3.5
set DEF_NUNIT=-D:nunit-console="%base%\SharedLibs\build\NUnit\bin
\nunit-console.exe"

nant %DEF_NH_DIALECT% %DEF_NH_DRIVER% %DEF_CONN_1% %DEF_CONN_2%
%DEF_MISC% %DEF_NUNIT% release clean build

cd %base_DP2%

call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
x86

msbuild /p:Configuration=Release Castle.DynamicProxy2-vs2008.sln

pause

for %%a in ( Castle.ActiveRecord.dll Castle.Core.dll
Castle.DynamicProxy.dll Iesi.Collections.dll log4net.dll
NHibernate.dll NVelocity.dll Castle.Components.Validator.dll
NHibernate.ByteCode.Castle.dll Antlr3.Runtime.dll) do copy %base%\build
\net-3.5\release\%%a %base%\bin

for %%a in ( Castle.DynamicProxy.dll ) do copy %base_dp2%
\Castle.DynamicProxy\bin\Release\%%a %base%\bin

net stop msdtc

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to