From: Michael D. <mik...@us...> - 2004-05-14 12:09:13
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10975/src/NHibernate.Test Modified Files: NHibernate.Test.build Log Message: major overhaul of build files in preparation for build 3. Thanks to NAnt for providing a good build file that I shamelessly used to make up NHibernate's build files. Index: NHibernate.Test.build =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHibernate.Test.build,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** NHibernate.Test.build 19 Mar 2004 19:40:26 -0000 1.2 --- NHibernate.Test.build 14 May 2004 12:08:58 -0000 1.3 *************** *** 1,82 **** <?xml version="1.0" ?> ! <project name="NHibernate" default="buildDebug" basedir="." xmlns="http://nant.sf.net/schemas/nant-0.84.win32.net-1.0.xsd"> ! ! <property name="nant.settings.currentframework" value="net-1.1" /> ! <property name="external.bin" value="../../external-bin" /> ! <property name="NHibernate.DomainModel.bin" value="../NHibernate.DomainModel/bin" /> ! <property name="NHibernate.bin" value="../NHibernate/bin" /> ! <target name="buildDebug"> ! <delete dir="bin/Debug" failonerror="false" /> ! <mkdir dir="bin/Debug" /> - <csc target="library" output="bin/Debug/NHibernate.Test.dll" debug="true"> <references> <includes name="System.dll" /> <includes name="System.XML.dll" /> <includes name="System.Data.dll" /> ! <includes name="${external.bin}/DotNetMock.dll" /> ! <includes name="${external.bin}/DotNetMock.Framework.dll" /> ! <includes name="${external.bin}/log4net.dll" /> ! <includes name="${external.bin}/nunit.framework.dll"/> ! <includes name="${NHibernate.DomainModel.bin}/Debug/NHibernate.DomainModel.dll" /> ! <includes name="${NHibernate.bin}/Debug/NHibernate.dll" /> </references> - <sources> - <includes name="**/*.cs" /> - </sources> - </csc> - - <copy - file="App.config" - tofile="bin/Debug/NHibernate.Test.dll.config" - /> - - <copy todir="bin/Debug"> - <fileset basedir="${external.bin}"> - <includes name="log4net.*" /> - </fileset> - </copy> - <copy todir="bin/Debug"> - <fileset basedir="${external.bin}"> - <includes name="DotNetMock.*" /> - </fileset> - </copy> - <copy todir="bin/Debug"> - <fileset basedir="${external.bin}"> - <includes name="nunit.framework.*" /> - </fileset> - </copy> - <copy todir="bin/Debug"> - <fileset basedir="${NHibernate.DomainModel.bin}/Debug"> - <includes name="*.*" /> - </fileset> - </copy> - <copy todir="bin/Debug"> - <fileset basedir="${NHibernate.bin}/Debug"> - <includes name="*.*" /> - </fileset> - </copy> - </target> - - <target name="buildRelease"> - - <delete dir="bin/Release" failonerror="false" /> - <mkdir dir="bin/Release" /> - - <csc target="library" output="bin/Release/NHibernate.Test.dll" debug="false"> - <references> - <includes name="System.dll" /> - <includes name="System.XML.dll" /> - <includes name="System.Data.dll" /> - <includes name="${external.bin}/DotNetMock.dll" /> - <includes name="${external.bin}/DotNetMock.Framework.dll" /> - <includes name="${external.bin}/log4net.dll" /> - <includes name="${external.bin}/nunit.framework.dll"/> - <includes name="${NHibernate.DomainModel.bin}/Debug/NHibernate.DomainModel.dll" /> - <includes name="${NHibernate.bin}/Debug/NHibernate.dll" /> - </references> <sources> <includes name="**/*.cs" /> --- 1,31 ---- <?xml version="1.0" ?> ! ! <project ! name="NHibernate.Test" ! default="build" ! xmlns="http://nant.sf.net/schemas/nant-0.84.win32.net-1.0.xsd" ! > ! <target name="build"> ! <csc ! target="library" ! define="${current.build.defines}" ! debug="${build.debug}" ! output="${build.dir}/bin/${nant.project.name}.dll" ! > <references> <includes name="System.dll" /> <includes name="System.XML.dll" /> <includes name="System.Data.dll" /> ! <includes name="${build.dir}/bin/DotNetMock.dll" /> ! <includes name="${build.dir}/bin/DotNetMock.Framework.dll" /> ! <includes name="${build.dir}/bin/log4net.dll" /> ! <includes name="${build.dir}/bin/nunit.framework.dll"/> ! <includes name="${build.dir}/bin/NHibernate.DomainModel.dll" /> ! <includes name="${build.dir}/bin/NHibernate.dll" /> </references> <sources> <includes name="**/*.cs" /> *************** *** 86,120 **** <copy file="App.config" ! tofile="bin/Debug/NHibernate.Test.dll.config" /> - - <copy todir="bin/Release"> - <fileset basedir="${external.bin}"> - <includes name="log4net.*" /> - </fileset> - </copy> - - <copy todir="bin/Release"> - <fileset basedir="${external.bin}"> - <includes name="DotNetMock.*" /> - </fileset> - </copy> - <copy todir="bin/Release"> - <fileset basedir="${external.bin}"> - <includes name="nunit.framework.*" /> - </fileset> - </copy> - - <copy todir="bin/Release"> - <fileset basedir="${NHibernate.DomainModel.bin}/Release"> - <includes name="*.*" /> - </fileset> - </copy> - - <copy todir="bin/Release"> - <fileset basedir="${NHibernate.bin}/Release"> - <includes name="*.*" /> - </fileset> - </copy> </target> --- 35,40 ---- <copy file="App.config" ! tofile="${build.dir}/bin/NHibernate.Test.dll.config" /> </target> *************** *** 122,127 **** <target name="test"> <nunit2> ! <formatter type="Xml" usefile="true" extension=".xml" /> ! <test assemblyname="bin/Debug/NHibernate.Test.dll" appconfig="bin/Debug/NHibernate.Test.dll.config" /> </nunit2> </target> --- 42,47 ---- <target name="test"> <nunit2> ! <formatter type="Xml" usefile="true" extension=".xml" outputdir="${build.dir}/bin" /> ! <test assemblyname="${build.dir}/bin/NHibernate.Test.dll" appconfig="${build.dir}/bin/NHibernate.Test.dll.config" /> </nunit2> </target> |