From: Michael D. <mik...@us...> - 2004-11-27 18:58:51
|
Update of /cvsroot/nhibernate/nhibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3318 Modified Files: NHibernateSolution.build Added Files: debug.bat release-package.bat Log Message: Added Clover.NET to build files for code coverage analysis. Index: NHibernateSolution.build =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/NHibernateSolution.build,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** NHibernateSolution.build 21 Nov 2004 22:50:33 -0000 1.16 --- NHibernateSolution.build 27 Nov 2004 18:58:41 -0000 1.17 *************** *** 7,10 **** --- 7,22 ---- > <!-- + if nunit2report tasks from http://nunit2report.sourceforge.net/ has been installed + then change this to true. It generates a nice looking html report for the test files + --> + <property name="nunit2report.installed" value="false" /> + + <!-- + Cenqua provided a license of Clover.NET for the NHibernate project to use. + --> + <property name="clover.enabled" value="false" /> + <property name="clover.home" value="C:/Program Files/Cenqua/Clover.NET" /> + + <!-- Use this to determine if the key file NHibernate.key should be used to sign the Assemblies. This defaults to false since users doing their own *************** *** 62,65 **** --- 74,81 ---- </target> + <target name="clean-bin" depends="init" description="Deletes the current bin folder"> + <delete dir="${build.dir}/bin" failonerror="false" /> + </target> + <target name="cleanall" description="Deletes every build configuration"> <echo message="Deleting all builds from all configurations" /> *************** *** 77,80 **** --- 93,114 ---- </target> + <target name="build-with-clover" depends="init" description="Builds current config with Clover coverage"> + <!-- + mark this as being a clover enabled build and then just let the normal build + process take place + --> + <property name="clover.enabled" value="true" /> + </target> + + <target name="build-without-clover" depends="init" description="Ensures the build is done without Clover coverage"> + <!-- + This does not really need to be called unless the clover.enabled property has been explicitly + set to true by some other means since clover.enabled defaults to false. It is my intention + to first do a clover build to get the coverage then to do a non-clover build to get the + clover-free dlls. + --> + <property name="clover.enabled" value="false" /> + </target> + <target name="build" depends="init" description="Builds current configuration"> <echo message="Current Directory is ${nant.project.basedir}" /> *************** *** 147,151 **** value="conn string here" /> ! </target> --- 181,187 ---- value="conn string here" /> ! ! <!-- the NHibernate.build takes care of determining if this is a clover build or not --> ! <nant target="coverage-report" buildfile="src/NHibernate/NHibernate.build" /> </target> *************** *** 155,159 **** <includes name="NHibernate.dll" /> </assemblies> ! <documenters> <documenter name="MSDN"> --- 191,197 ---- <includes name="NHibernate.dll" /> </assemblies> ! <summaries> ! <includes name="src/NHibernate/NamespaceSummary.xml" /> ! </summaries> <documenters> <documenter name="MSDN"> *************** *** 191,197 **** <property name="AutoPropertyBackerSummaries" value="False" /> <property name="AutoDocumentConstructors" value="True" /> ! <property name="DocumentAttributes" value="False" /> <property name="ShowTypeIdInAttributes" value="False" /> ! <property name="DocumentedAttributes" value="" /> <property name="GetExternalSummaries" value="True" /> <property name="EditorBrowsableFilter" value="Off" /> --- 229,235 ---- <property name="AutoPropertyBackerSummaries" value="False" /> <property name="AutoDocumentConstructors" value="True" /> ! <property name="DocumentAttributes" value="True" /> <property name="ShowTypeIdInAttributes" value="False" /> ! <property name="DocumentedAttributes" value="True" /> <property name="GetExternalSummaries" value="True" /> <property name="EditorBrowsableFilter" value="Off" /> *************** *** 218,223 **** <includes name="${lib.dir}/**" /> ! <!-- exclude the UnitTesting project that is no longer used --> <excludes name="src/UnitTesting/**" /> <includes name="src/**" /> --- 256,266 ---- <includes name="${lib.dir}/**" /> ! <!-- ! exclude the UnitTesting project that is no longer used and the ! Clover modified source files. ! --> <excludes name="src/UnitTesting/**" /> + <excludes name="src/CloverBuild/**" /> + <includes name="src/**" /> --- NEW FILE: release-package.bat --- NAnt -D:project.config=release -D:sign=true clean build-with-clover test >release-with-clover.log NAnt -D:project.config=release -D:sign=true -D:nunit2report.installed=true clean-bin package >release-package.log --- NEW FILE: debug.bat --- NAnt clean build-with-clover test >debug-with-clover.log NAnt clean-bin test >debug.log |