From: <aye...@us...> - 2008-09-28 16:54:16
|
Revision: 3794 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=3794&view=rev Author: ayenderahien Date: 2008-09-28 16:54:05 +0000 (Sun, 28 Sep 2008) Log Message: ----------- Requiring .Net 3.5 for building the project. from now on, either nant needs to be setup to use net-3.5 by default, or needs to be invoked with -t:net-3.5 Modified Paths: -------------- trunk/nhibernate/default.build Modified: trunk/nhibernate/default.build =================================================================== --- trunk/nhibernate/default.build 2008-09-28 15:04:20 UTC (rev 3793) +++ trunk/nhibernate/default.build 2008-09-28 16:54:05 UTC (rev 3794) @@ -92,7 +92,7 @@ </target> <target name="build" - depends="init prepare-build-directory" + depends="check-framework-version init prepare-build-directory" description="Builds NHibernate in the current configuration"> <nant target="build"> @@ -100,6 +100,11 @@ </nant> </target> + + <target name="check-framework-version"> + <echo>Running with ${framework::get-target-framework()}</echo> + <fail message="ERROR: NHibernate requires .Net 3.5 to compile (but can run on .Net 2.0), please use the -t:net-3.5 parameter when starting nant" if="${framework::get-target-framework()!='net-3.5'}"/> + </target> <target name="test-report" if="${nunit2report.installed}"> <mkdir dir="${build.dir}/testresults" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-03-05 13:00:04
|
Revision: 4116 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4116&view=rev Author: fabiomaulo Date: 2009-03-05 13:00:03 +0000 (Thu, 05 Mar 2009) Log Message: ----------- Removed Spring, from compilation process, until we don't have a final release of Spring stuff Modified Paths: -------------- trunk/nhibernate/default.build Modified: trunk/nhibernate/default.build =================================================================== --- trunk/nhibernate/default.build 2009-03-05 12:54:29 UTC (rev 4115) +++ trunk/nhibernate/default.build 2009-03-05 13:00:03 UTC (rev 4116) @@ -30,8 +30,6 @@ <include name="NHibernate.ByteCode.LinFu.Tests/ByteCode.Test.build" /> <include name="NHibernate.ByteCode.Castle/ByteCode.build" /> <include name="NHibernate.ByteCode.Castle.Tests/ByteCode.Test.build" /> - <include name="NHibernate.ByteCode.Spring/ByteCode.build" /> - <include name="NHibernate.ByteCode.Spring.Tests/ByteCode.Test.build" /> <include name="NHibernate.DomainModel/NHibernate.DomainModel.build" /> <include name="NHibernate.Test/NHibernate.Test.build" /> <include name="NHibernate.Test.Performance/NHibernate.Test.Performance.build" /> @@ -43,7 +41,6 @@ <include name="Iesi.Collections.Test/Iesi.Collections.Test.build" /> <include name="NHibernate.ByteCode.LinFu.Tests/ByteCode.Test.build" /> <include name="NHibernate.ByteCode.Castle.Tests/ByteCode.Test.build" /> - <include name="NHibernate.ByteCode.Spring.Tests/ByteCode.Test.build" /> <include name="NHibernate.Test/NHibernate.Test.build" /> <include name="NHibernate.Test.Performance/NHibernate.Test.Performance.build" if="${run.performance.tests}" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-03-14 19:40:05
|
Revision: 4133 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4133&view=rev Author: fabiomaulo Date: 2009-03-14 19:40:00 +0000 (Sat, 14 Mar 2009) Log Message: ----------- Minor (Reformatted) Modified Paths: -------------- trunk/nhibernate/default.build Modified: trunk/nhibernate/default.build =================================================================== --- trunk/nhibernate/default.build 2009-03-14 19:14:07 UTC (rev 4132) +++ trunk/nhibernate/default.build 2009-03-14 19:40:00 UTC (rev 4133) @@ -1,26 +1,14 @@ -<?xml version="1.0" ?> -<project - name="NHibernate" - default="build" - xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd" -> - +<?xml version="1.0"?> +<project name="NHibernate" default="build"> <property name="root.dir" value="." /> - <include buildfile="${root.dir}/build-common/common.xml" /> - <!-- Pass -D:skip.tests=true to NAnt to skip running tests when building --> <property name="skip.tests" value="false" overwrite="false" /> - <!-- Disable performance tests by default. They take too much time. --> <property name="run.performance.tests" value="false" overwrite="false" /> - - <!-- - Supported versions of .NET Framework, separated by spaces. - Used by *-all-frameworks targets. - --> + <!-- Supported versions of .NET Framework, separated by spaces. + Used by *-all-frameworks targets. --> <property name="supported.frameworks" value="net-2.0" /> - <fileset id="buildfiles.all" basedir="src"> <!-- Files have to be in dependency order --> <include name="Iesi.Collections/Iesi.Collections.build" /> @@ -36,27 +24,21 @@ <include name="NHibernate.Examples/NHibernate.Examples.build" /> <include name="NHibernate.Tool.HbmXsd/NHibernate.Tool.HbmXsd.build" /> </fileset> - <fileset id="buildfiles.tests" basedir="src"> <include name="Iesi.Collections.Test/Iesi.Collections.Test.build" /> <include name="NHibernate.ByteCode.LinFu.Tests/ByteCode.Test.build" /> <include name="NHibernate.ByteCode.Castle.Tests/ByteCode.Test.build" /> <include name="NHibernate.Test/NHibernate.Test.build" /> - <include name="NHibernate.Test.Performance/NHibernate.Test.Performance.build" - if="${run.performance.tests}" /> + <include name="NHibernate.Test.Performance/NHibernate.Test.Performance.build" if="${run.performance.tests}" /> </fileset> - - <target name="init" depends="common.init" - description="Initializes build properties" /> - + <target name="init" depends="common.init" description="Initializes build properties" /> <target name="prepare-build-directory" depends="init"> <mkdir dir="${bin.dir}" /> <call target="copy-referenced-assemblies" /> </target> - <target name="copy-referenced-assemblies"> <!-- Copy framework-neutral libraries --> - <copy todir="${bin.dir}" > + <copy todir="${bin.dir}"> <fileset basedir="${lib.dir}"> <include name="*.dll" /> <include name="*.xml" /> @@ -64,13 +46,9 @@ <include name="nant/*.*" /> </fileset> </copy> - - <!-- Copy family-specific libraries --> - <!-- - The builds of log4net and nunit work just fine for all versions of .NET. + <!-- Copy family-specific libraries | The builds of log4net and nunit work just fine for all versions of .NET. When they do get framework specific extensions then we - can just move them to the framework specific section - --> + can just move them to the framework specific section --> <copy todir="${bin.dir}"> <fileset basedir="${lib.family.dir}"> <include name="*.dll" /> @@ -78,7 +56,6 @@ <include name="*.license.txt" /> </fileset> </copy> - <!-- Copy framework-specific libraries --> <copy todir="${bin.dir}"> <fileset basedir="${lib.framework.dir}"> @@ -101,22 +78,15 @@ </fileset> </copy> </target> - - <target name="build" - depends="check-framework-version init prepare-build-directory" - description="Builds NHibernate in the current configuration"> - + <target name="build" depends="check-framework-version init prepare-build-directory" description="Builds NHibernate in the current configuration"> <nant target="build"> <buildfiles refid="buildfiles.all" /> </nant> - </target> - <target name="check-framework-version"> - <echo>Running with ${framework::get-target-framework()}</echo> - <fail message="ERROR: NHibernate requires .Net 3.5 to compile (but can run on .Net 2.0), please use the -t:net-3.5 parameter when starting nant" if="${framework::get-target-framework()!='net-3.5'}"/> + <echo>Running with ${framework::get-target-framework()}</echo> + <fail message="ERROR: NHibernate requires .Net 3.5 to compile (but can run on .Net 2.0), please use the -t:net-3.5 parameter when starting nant" if="${framework::get-target-framework()!='net-3.5'}" /> </target> - <target name="test-report" if="${nunit2report.installed}"> <mkdir dir="${build.dir}/testresults" /> <nunit2report out="${build.dir}/testresults/index.html" format="Frames" todir="${build.dir}/testresults"> @@ -125,14 +95,10 @@ </fileset> </nunit2report> </target> - <target name="test" depends="init build" description="Runs all NHibernate tests for the current framework" unless="${skip.tests}"> - <!-- - <nant target="test"> + <!-- <nant target="test"> <buildfiles refid="buildfiles.tests" /> - </nant> - --> - <!-- --> + </nant> | --> <foreach item="File" property="buildfile"> <in> <items refid="buildfiles.tests" /> @@ -148,100 +114,74 @@ </foreach> <!-- --> </target> - - <target name="coverage-report" description="Builds the test coverage reports" - if="${clover.enabled}"> - + <target name="coverage-report" description="Builds the test coverage reports" if="${clover.enabled}"> <mkdir dir="${build.dir}/clover" /> - <clover-setup - initstring="${clover.db}" - flushinterval="1000" - /> - + <clover-setup initstring="${clover.db}" flushinterval="1000" /> <clover-report> - <current title="NHibernate Clover Report" output="${build.dir}/clover" > + <current title="NHibernate Clover Report" output="${build.dir}/clover"> <format type="html" orderby="Alpha" /> </current> </clover-report> - </target> - - <target name="doc" depends="init binaries" - description="Builds the Help Documentation and the API documentation"> + <target name="doc" depends="init binaries" description="Builds the Help Documentation and the API documentation"> <nant buildfile="doc/documentation.build" target="api manual" /> </target> - <target name="build-all-frameworks" depends="init"> <!-- Save the current framework --> <property name="current.framework.saved" value="${nant.settings.currentframework}" /> - <!-- Execute build for each framework --> <foreach item="String" delim=" " property="framework" in="${supported.frameworks}"> <call target="set-${framework}-framework-configuration" /> <call target="build" /> <!-- Copy and rename the license --> - <copy file="lgpl.txt" tofile="${bin.dir}/NHibernate.license.txt" /> + <copy file="lgpl.txt" tofile="${bin.dir}/NHibernate.license.txt" /> </foreach> - <!-- Reset the current framework to the saved value --> <call target="set-${current.framework.saved}-framework-configuration" /> </target> - <target name="binaries" depends="init"> <property name="clover.enabled" value="false" /> - <call target="build-all-frameworks" /> </target> - <target name="test-all-frameworks" depends="init"> <!-- Save the current framework --> <property name="current.framework.saved" value="${nant.settings.currentframework}" /> - <!-- Execute build for each framework --> <foreach item="String" delim=" " property="framework" in="${supported.frameworks}"> <call target="set-${framework}-framework-configuration" /> <call target="test" /> </foreach> - <!-- Reset the current framework to the saved value --> <call target="set-${current.framework.saved}-framework-configuration" /> </target> - <target name="reports" depends="init"> <property name="clover.enabled" value="false" /> <call target="test-all-frameworks" /> <call target="test-report" /> <call target="coverage-report" /> </target> - <target name="sources"> <property name="source.tmpdir" value="${build.dir}/tmp-src" /> <copy todir="${source.tmpdir}"> <fileset> <!-- copy dlls used by this build --> - <include name="${lib.dir}/**" /> - + <include name="${lib.dir}/**" /> <!-- copy all of the NHibernate source --> <include name="src/NHibernate*/**" /> <include name="src/Iesi*/**" /> <include name="src/*.*" /> - <include name="build-common/**" /> - <include name="*.build" /> <include name="gfdl.txt" /> <include name="lgpl.txt" /> <include name="releasenotes.txt" /> <include name="readme.html" /> - <!-- exclude the Clover modified source files. --> <exclude name="${clover.src}/**" /> - <!-- exclude ReSharper stuff --> <exclude name="**/_ReSharper*/**" /> <exclude name="**/*.resharperoptions" /> <exclude name="**/*resharper*" /> - <!-- exclude VS.NET stuff --> <exclude name="**/*.suo" /> <exclude name="**/*.user" /> @@ -249,12 +189,9 @@ <exclude name="**/obj/**" /> </fileset> </copy> - <!-- Generate AssemblyInfo.cs files for Visual Studio --> <nant buildfile="${source.tmpdir}/default.build" target="visual-studio" /> - </target> - <target name="sources-zip" depends="init sources"> <mkdir dir="${build.dir}/src" /> <zip zipfile="${build.dir}/src/NHibernate-${project.version}-src.zip"> @@ -263,16 +200,12 @@ </fileset> </zip> </target> - <target name="copy-release-notes" depends="init"> <copy file="releasenotes.txt" todir="${build.dir}" /> </target> - <target name="copy-xml-schemas" depends="init"> - <!-- - TODO: Probably need to think of a better place for the XML schemas since - they are used by NHibernate and this build file. - --> + <!-- TODO: Probably need to think of a better place for the XML schemas since + they are used by NHibernate and this build file. --> <copy todir="${build.dir}"> <fileset basedir="src/NHibernate"> <include name="nhibernate-mapping.xsd" /> @@ -280,42 +213,32 @@ </fileset> </copy> </target> - <target name="copy-config-templates" depends="init"> - <!-- - TODO: I don't like where these are put now. Should think of a better - place for these. - --> + <!-- TODO: I don't like where these are put now. Should think of a better + place for these. --> <copy todir="${build.dir}/config.templates"> <fileset basedir="src/NHibernate.Config.Templates"> - <include name="*"/> + <include name="*" /> </fileset> </copy> </target> - <target name="binaries-zip" depends="init binaries copy-release-notes copy-xml-schemas copy-config-templates"> <zip zipfile="${build.dir}/bin/NHibernate-${project.version}-bin.zip"> <fileset basedir="${build.dir}"> <include name="releasenotes.txt" /> <include name="*.xsd" /> <include name="bin/**" /> - <exclude name="**/*.hbm.xml" /> <exclude name="**/*.commandlog" /> <exclude name="**/MyTest*" /> </fileset> </zip> </target> - <target name="prepare-installer-files" depends="init sources-zip copy-release-notes" /> - <target name="installer" depends="init binaries doc prepare-installer-files"> <nant buildfile="src/NHibernate.Setup/NHibernate.Setup.build" target="msi" /> </target> - - <target name="package" depends="init test-all-frameworks binaries doc sources-zip binaries-zip installer" - description="Creates files for the File Release System on SourceForge"> - + <target name="package" depends="init test-all-frameworks binaries doc sources-zip binaries-zip installer" description="Creates files for the File Release System on SourceForge"> <property name="dist.output.dir" value="${project::get-base-directory()}/build/" /> <move todir="${dist.output.dir}" flatten="true" overwrite="true"> <fileset basedir="${build.dir}"> @@ -324,45 +247,30 @@ <include name="bin/NHibernate-${project.version}-bin.zip" /> </fileset> </move> - <echo message="Created a '${project.config}' package in ${dist.output.dir}" /> - </target> - - <target name="fxcop" depends="init" > - <exec program="${fxcop.exe}" - commandline="/f:${build.dir}\bin\nhibernate.dll /o:${build.dir}\bin\fxcop-results.xml" - failonerror="false"/> - </target> - - <target name="simian" depends="init" > - <exec program="${simian.exe}" verbose="true" - commandline="-recurse=src/*.cs -formatter=xml:${build.dir}\bin\simian-results.xml -failOnDuplication-" - failonerror="false"/> - </target> - + <target name="fxcop" depends="init"> + <exec program="${fxcop.exe}" commandline="/f:${build.dir}\bin\nhibernate.dll /o:${build.dir}\bin\fxcop-results.xml" failonerror="false" /> + </target> + <target name="simian" depends="init"> + <exec program="${simian.exe}" verbose="true" commandline="-recurse=src/*.cs -formatter=xml:${build.dir}\bin\simian-results.xml -failOnDuplication-" failonerror="false" /> + </target> <target name="visual-studio" depends="init" description="Modifies AssemblyInfo.cs files to work with Visual Studio"> <property name="visual-studio" value="true" /> <nant target="generate-assemblyinfo"> <buildfiles refid="buildfiles.all" /> </nant> </target> - <target name="cleanall" description="Deletes every build configuration"> <echo message="Deleting all builds from all configurations" /> <delete dir="build" failonerror="false" /> <delete dir="${clover.src}" failonerror="false" /> </target> - <target name="clean" depends="init" description="Deletes current build"> <delete dir="${build.dir}" failonerror="false" /> <delete dir="${clover.src}" failonerror="false" /> </target> - <target name="gen-schema-classes" descripton="Generates schema classes from nhibernate-mapping.xsd"> - <exec program="xsd.exe" - commandline="src\NHibernate\nhibernate-mapping.xsd /classes /fields /order /namespace:NHibernate.Cfg.MappingSchema /out:src\NHibernate\Cfg\MappingSchema\"/> - + <exec program="xsd.exe" commandline="src\NHibernate\nhibernate-mapping.xsd /classes /fields /order /namespace:NHibernate.Cfg.MappingSchema /out:src\NHibernate\Cfg\MappingSchema\" /> </target> - </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-03-14 19:53:33
|
Revision: 4134 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4134&view=rev Author: fabiomaulo Date: 2009-03-14 19:53:23 +0000 (Sat, 14 Mar 2009) Log Message: ----------- Revert r4133 (apparently was not only a reformat matter) Modified Paths: -------------- trunk/nhibernate/default.build Modified: trunk/nhibernate/default.build =================================================================== --- trunk/nhibernate/default.build 2009-03-14 19:40:00 UTC (rev 4133) +++ trunk/nhibernate/default.build 2009-03-14 19:53:23 UTC (rev 4134) @@ -1,14 +1,26 @@ -<?xml version="1.0"?> -<project name="NHibernate" default="build"> +<?xml version="1.0" ?> +<project + name="NHibernate" + default="build" + xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd" +> + <property name="root.dir" value="." /> + <include buildfile="${root.dir}/build-common/common.xml" /> + <!-- Pass -D:skip.tests=true to NAnt to skip running tests when building --> <property name="skip.tests" value="false" overwrite="false" /> + <!-- Disable performance tests by default. They take too much time. --> <property name="run.performance.tests" value="false" overwrite="false" /> - <!-- Supported versions of .NET Framework, separated by spaces. - Used by *-all-frameworks targets. --> + + <!-- + Supported versions of .NET Framework, separated by spaces. + Used by *-all-frameworks targets. + --> <property name="supported.frameworks" value="net-2.0" /> + <fileset id="buildfiles.all" basedir="src"> <!-- Files have to be in dependency order --> <include name="Iesi.Collections/Iesi.Collections.build" /> @@ -24,21 +36,27 @@ <include name="NHibernate.Examples/NHibernate.Examples.build" /> <include name="NHibernate.Tool.HbmXsd/NHibernate.Tool.HbmXsd.build" /> </fileset> + <fileset id="buildfiles.tests" basedir="src"> <include name="Iesi.Collections.Test/Iesi.Collections.Test.build" /> <include name="NHibernate.ByteCode.LinFu.Tests/ByteCode.Test.build" /> <include name="NHibernate.ByteCode.Castle.Tests/ByteCode.Test.build" /> <include name="NHibernate.Test/NHibernate.Test.build" /> - <include name="NHibernate.Test.Performance/NHibernate.Test.Performance.build" if="${run.performance.tests}" /> + <include name="NHibernate.Test.Performance/NHibernate.Test.Performance.build" + if="${run.performance.tests}" /> </fileset> - <target name="init" depends="common.init" description="Initializes build properties" /> + + <target name="init" depends="common.init" + description="Initializes build properties" /> + <target name="prepare-build-directory" depends="init"> <mkdir dir="${bin.dir}" /> <call target="copy-referenced-assemblies" /> </target> + <target name="copy-referenced-assemblies"> <!-- Copy framework-neutral libraries --> - <copy todir="${bin.dir}"> + <copy todir="${bin.dir}" > <fileset basedir="${lib.dir}"> <include name="*.dll" /> <include name="*.xml" /> @@ -46,9 +64,13 @@ <include name="nant/*.*" /> </fileset> </copy> - <!-- Copy family-specific libraries | The builds of log4net and nunit work just fine for all versions of .NET. + + <!-- Copy family-specific libraries --> + <!-- + The builds of log4net and nunit work just fine for all versions of .NET. When they do get framework specific extensions then we - can just move them to the framework specific section --> + can just move them to the framework specific section + --> <copy todir="${bin.dir}"> <fileset basedir="${lib.family.dir}"> <include name="*.dll" /> @@ -56,6 +78,7 @@ <include name="*.license.txt" /> </fileset> </copy> + <!-- Copy framework-specific libraries --> <copy todir="${bin.dir}"> <fileset basedir="${lib.framework.dir}"> @@ -78,15 +101,22 @@ </fileset> </copy> </target> - <target name="build" depends="check-framework-version init prepare-build-directory" description="Builds NHibernate in the current configuration"> + + <target name="build" + depends="check-framework-version init prepare-build-directory" + description="Builds NHibernate in the current configuration"> + <nant target="build"> <buildfiles refid="buildfiles.all" /> </nant> + </target> + <target name="check-framework-version"> - <echo>Running with ${framework::get-target-framework()}</echo> - <fail message="ERROR: NHibernate requires .Net 3.5 to compile (but can run on .Net 2.0), please use the -t:net-3.5 parameter when starting nant" if="${framework::get-target-framework()!='net-3.5'}" /> + <echo>Running with ${framework::get-target-framework()}</echo> + <fail message="ERROR: NHibernate requires .Net 3.5 to compile (but can run on .Net 2.0), please use the -t:net-3.5 parameter when starting nant" if="${framework::get-target-framework()!='net-3.5'}"/> </target> + <target name="test-report" if="${nunit2report.installed}"> <mkdir dir="${build.dir}/testresults" /> <nunit2report out="${build.dir}/testresults/index.html" format="Frames" todir="${build.dir}/testresults"> @@ -95,10 +125,14 @@ </fileset> </nunit2report> </target> + <target name="test" depends="init build" description="Runs all NHibernate tests for the current framework" unless="${skip.tests}"> - <!-- <nant target="test"> + <!-- + <nant target="test"> <buildfiles refid="buildfiles.tests" /> - </nant> | --> + </nant> + --> + <!-- --> <foreach item="File" property="buildfile"> <in> <items refid="buildfiles.tests" /> @@ -114,74 +148,100 @@ </foreach> <!-- --> </target> - <target name="coverage-report" description="Builds the test coverage reports" if="${clover.enabled}"> + + <target name="coverage-report" description="Builds the test coverage reports" + if="${clover.enabled}"> + <mkdir dir="${build.dir}/clover" /> - <clover-setup initstring="${clover.db}" flushinterval="1000" /> + <clover-setup + initstring="${clover.db}" + flushinterval="1000" + /> + <clover-report> - <current title="NHibernate Clover Report" output="${build.dir}/clover"> + <current title="NHibernate Clover Report" output="${build.dir}/clover" > <format type="html" orderby="Alpha" /> </current> </clover-report> + </target> - <target name="doc" depends="init binaries" description="Builds the Help Documentation and the API documentation"> + + <target name="doc" depends="init binaries" + description="Builds the Help Documentation and the API documentation"> <nant buildfile="doc/documentation.build" target="api manual" /> </target> + <target name="build-all-frameworks" depends="init"> <!-- Save the current framework --> <property name="current.framework.saved" value="${nant.settings.currentframework}" /> + <!-- Execute build for each framework --> <foreach item="String" delim=" " property="framework" in="${supported.frameworks}"> <call target="set-${framework}-framework-configuration" /> <call target="build" /> <!-- Copy and rename the license --> - <copy file="lgpl.txt" tofile="${bin.dir}/NHibernate.license.txt" /> + <copy file="lgpl.txt" tofile="${bin.dir}/NHibernate.license.txt" /> </foreach> + <!-- Reset the current framework to the saved value --> <call target="set-${current.framework.saved}-framework-configuration" /> </target> + <target name="binaries" depends="init"> <property name="clover.enabled" value="false" /> + <call target="build-all-frameworks" /> </target> + <target name="test-all-frameworks" depends="init"> <!-- Save the current framework --> <property name="current.framework.saved" value="${nant.settings.currentframework}" /> + <!-- Execute build for each framework --> <foreach item="String" delim=" " property="framework" in="${supported.frameworks}"> <call target="set-${framework}-framework-configuration" /> <call target="test" /> </foreach> + <!-- Reset the current framework to the saved value --> <call target="set-${current.framework.saved}-framework-configuration" /> </target> + <target name="reports" depends="init"> <property name="clover.enabled" value="false" /> <call target="test-all-frameworks" /> <call target="test-report" /> <call target="coverage-report" /> </target> + <target name="sources"> <property name="source.tmpdir" value="${build.dir}/tmp-src" /> <copy todir="${source.tmpdir}"> <fileset> <!-- copy dlls used by this build --> - <include name="${lib.dir}/**" /> + <include name="${lib.dir}/**" /> + <!-- copy all of the NHibernate source --> <include name="src/NHibernate*/**" /> <include name="src/Iesi*/**" /> <include name="src/*.*" /> + <include name="build-common/**" /> + <include name="*.build" /> <include name="gfdl.txt" /> <include name="lgpl.txt" /> <include name="releasenotes.txt" /> <include name="readme.html" /> + <!-- exclude the Clover modified source files. --> <exclude name="${clover.src}/**" /> + <!-- exclude ReSharper stuff --> <exclude name="**/_ReSharper*/**" /> <exclude name="**/*.resharperoptions" /> <exclude name="**/*resharper*" /> + <!-- exclude VS.NET stuff --> <exclude name="**/*.suo" /> <exclude name="**/*.user" /> @@ -189,9 +249,12 @@ <exclude name="**/obj/**" /> </fileset> </copy> + <!-- Generate AssemblyInfo.cs files for Visual Studio --> <nant buildfile="${source.tmpdir}/default.build" target="visual-studio" /> + </target> + <target name="sources-zip" depends="init sources"> <mkdir dir="${build.dir}/src" /> <zip zipfile="${build.dir}/src/NHibernate-${project.version}-src.zip"> @@ -200,12 +263,16 @@ </fileset> </zip> </target> + <target name="copy-release-notes" depends="init"> <copy file="releasenotes.txt" todir="${build.dir}" /> </target> + <target name="copy-xml-schemas" depends="init"> - <!-- TODO: Probably need to think of a better place for the XML schemas since - they are used by NHibernate and this build file. --> + <!-- + TODO: Probably need to think of a better place for the XML schemas since + they are used by NHibernate and this build file. + --> <copy todir="${build.dir}"> <fileset basedir="src/NHibernate"> <include name="nhibernate-mapping.xsd" /> @@ -213,32 +280,42 @@ </fileset> </copy> </target> + <target name="copy-config-templates" depends="init"> - <!-- TODO: I don't like where these are put now. Should think of a better - place for these. --> + <!-- + TODO: I don't like where these are put now. Should think of a better + place for these. + --> <copy todir="${build.dir}/config.templates"> <fileset basedir="src/NHibernate.Config.Templates"> - <include name="*" /> + <include name="*"/> </fileset> </copy> </target> + <target name="binaries-zip" depends="init binaries copy-release-notes copy-xml-schemas copy-config-templates"> <zip zipfile="${build.dir}/bin/NHibernate-${project.version}-bin.zip"> <fileset basedir="${build.dir}"> <include name="releasenotes.txt" /> <include name="*.xsd" /> <include name="bin/**" /> + <exclude name="**/*.hbm.xml" /> <exclude name="**/*.commandlog" /> <exclude name="**/MyTest*" /> </fileset> </zip> </target> + <target name="prepare-installer-files" depends="init sources-zip copy-release-notes" /> + <target name="installer" depends="init binaries doc prepare-installer-files"> <nant buildfile="src/NHibernate.Setup/NHibernate.Setup.build" target="msi" /> </target> - <target name="package" depends="init test-all-frameworks binaries doc sources-zip binaries-zip installer" description="Creates files for the File Release System on SourceForge"> + + <target name="package" depends="init test-all-frameworks binaries doc sources-zip binaries-zip installer" + description="Creates files for the File Release System on SourceForge"> + <property name="dist.output.dir" value="${project::get-base-directory()}/build/" /> <move todir="${dist.output.dir}" flatten="true" overwrite="true"> <fileset basedir="${build.dir}"> @@ -247,30 +324,45 @@ <include name="bin/NHibernate-${project.version}-bin.zip" /> </fileset> </move> + <echo message="Created a '${project.config}' package in ${dist.output.dir}" /> + </target> - <target name="fxcop" depends="init"> - <exec program="${fxcop.exe}" commandline="/f:${build.dir}\bin\nhibernate.dll /o:${build.dir}\bin\fxcop-results.xml" failonerror="false" /> - </target> - <target name="simian" depends="init"> - <exec program="${simian.exe}" verbose="true" commandline="-recurse=src/*.cs -formatter=xml:${build.dir}\bin\simian-results.xml -failOnDuplication-" failonerror="false" /> - </target> + + <target name="fxcop" depends="init" > + <exec program="${fxcop.exe}" + commandline="/f:${build.dir}\bin\nhibernate.dll /o:${build.dir}\bin\fxcop-results.xml" + failonerror="false"/> + </target> + + <target name="simian" depends="init" > + <exec program="${simian.exe}" verbose="true" + commandline="-recurse=src/*.cs -formatter=xml:${build.dir}\bin\simian-results.xml -failOnDuplication-" + failonerror="false"/> + </target> + <target name="visual-studio" depends="init" description="Modifies AssemblyInfo.cs files to work with Visual Studio"> <property name="visual-studio" value="true" /> <nant target="generate-assemblyinfo"> <buildfiles refid="buildfiles.all" /> </nant> </target> + <target name="cleanall" description="Deletes every build configuration"> <echo message="Deleting all builds from all configurations" /> <delete dir="build" failonerror="false" /> <delete dir="${clover.src}" failonerror="false" /> </target> + <target name="clean" depends="init" description="Deletes current build"> <delete dir="${build.dir}" failonerror="false" /> <delete dir="${clover.src}" failonerror="false" /> </target> + <target name="gen-schema-classes" descripton="Generates schema classes from nhibernate-mapping.xsd"> - <exec program="xsd.exe" commandline="src\NHibernate\nhibernate-mapping.xsd /classes /fields /order /namespace:NHibernate.Cfg.MappingSchema /out:src\NHibernate\Cfg\MappingSchema\" /> + <exec program="xsd.exe" + commandline="src\NHibernate\nhibernate-mapping.xsd /classes /fields /order /namespace:NHibernate.Cfg.MappingSchema /out:src\NHibernate\Cfg\MappingSchema\"/> + </target> + </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-03-14 22:43:29
|
Revision: 4136 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4136&view=rev Author: fabiomaulo Date: 2009-03-14 22:43:23 +0000 (Sat, 14 Mar 2009) Log Message: ----------- Disable build-all-framework Modified Paths: -------------- trunk/nhibernate/default.build Modified: trunk/nhibernate/default.build =================================================================== --- trunk/nhibernate/default.build 2009-03-14 20:09:50 UTC (rev 4135) +++ trunk/nhibernate/default.build 2009-03-14 22:43:23 UTC (rev 4136) @@ -190,7 +190,7 @@ <target name="binaries" depends="init"> <property name="clover.enabled" value="false" /> - <call target="build-all-frameworks" /> + <call target="build" /> </target> <target name="test-all-frameworks" depends="init"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2010-07-23 16:24:00
|
Revision: 5056 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5056&view=rev Author: fabiomaulo Date: 2010-07-23 16:23:54 +0000 (Fri, 23 Jul 2010) Log Message: ----------- Fixed Nant build for release Modified Paths: -------------- trunk/nhibernate/default.build Modified: trunk/nhibernate/default.build =================================================================== --- trunk/nhibernate/default.build 2010-07-23 14:37:02 UTC (rev 5055) +++ trunk/nhibernate/default.build 2010-07-23 16:23:54 UTC (rev 5056) @@ -300,7 +300,8 @@ <include name="Antlr3.Runtime.dll" /> <include name="Iesi.Collections.???" /> <include name="log4net*" /> - <include name="NHibernate.???" /> + <include name="Remotion.Data.Linq.dll" /> + <include name="NHibernate.???" /> </fileset> </copy> <!--Required Bins for lazy loading NHibernate.ByteCode.Castle.dll--> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2010-08-10 13:29:45
|
Revision: 5134 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5134&view=rev Author: fabiomaulo Date: 2010-08-10 13:29:39 +0000 (Tue, 10 Aug 2010) Log Message: ----------- Fixed build script Modified Paths: -------------- trunk/nhibernate/default.build Modified: trunk/nhibernate/default.build =================================================================== --- trunk/nhibernate/default.build 2010-08-10 02:46:39 UTC (rev 5133) +++ trunk/nhibernate/default.build 2010-08-10 13:29:39 UTC (rev 5134) @@ -299,7 +299,6 @@ <fileset basedir="${bin.dir}"> <include name="Antlr3.Runtime.dll" /> <include name="Iesi.Collections.???" /> - <include name="log4net*" /> <include name="Remotion.Data.Linq.dll" /> <include name="NHibernate.???" /> </fileset> @@ -329,13 +328,19 @@ <!-- Tests --> <copy file="${bin.dir}/TestEnbeddedConfig.cfg.xml" todir="${bin-pack.tests}"/> <copy file="${bin.dir}/ABC.hbm.xml" todir="${bin-pack.tests}"/> - <copy todir="${bin-pack.tests}"> + <copy todir="${bin-pack.tests}/DbScripts"> + <fileset basedir="${root.dir}/src/NHibernate.Test/DbScripts"> + <include name="*.sql" /> + </fileset> + </copy> + <copy todir="${bin-pack.tests}"> <fileset basedir="${bin.dir}"> <include name="nunit*" /> <include name="SharpTestsEx*" /> <include name="NHibernate.Domain*" /> <include name="NHibernate.Test*" /> - </fileset> + <include name="log4net*" /> + </fileset> </copy> </target> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-13 03:24:03
|
Revision: 5463 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5463&view=rev Author: fabiomaulo Date: 2011-03-13 03:23:57 +0000 (Sun, 13 Mar 2011) Log Message: ----------- creation of nuget push bat Modified Paths: -------------- trunk/nhibernate/default.build Modified: trunk/nhibernate/default.build =================================================================== --- trunk/nhibernate/default.build 2011-03-13 03:13:34 UTC (rev 5462) +++ trunk/nhibernate/default.build 2011-03-13 03:23:57 UTC (rev 5463) @@ -394,12 +394,11 @@ <target name="nuget" depends="init binaries nuspec" description="Creates files for the release on nuget gallery."> + <property name="nuget.conf-template" value="${build.dir}/NHibernateXmlConfigurationTemplates" /> - <copy file="releasenotes.txt" tofile="${build.dir}/NHibernate.releasenotes.txt"/> <copy file="readme.html" tofile="${build.dir}/NHibernate.readme.html"/> <copy file="lgpl.txt" tofile="${build.dir}/NHibernate.license.txt"/> - <!--Configuration templates--> <copy todir="${nuget.conf-template}"> <fileset basedir="src/NHibernate.Config.Templates"> @@ -413,6 +412,22 @@ <nant target="nuget"> <buildfiles refid="nugetfiles.all" /> </nant> + + <!--Create NuGet push bat --> + <copy file="${tools.dir}/NuGet.exe" todir="${build.dir}/${nugetdeploy.subdir}"/> + <property name="nugetdeploy.pushbatfile" value="${build.dir}/${nugetdeploy.subdir}/NuGetPush.bat" /> + + <echo message="rem The parameter is your NuGet access key ${environment::newline()}" file="${nugetdeploy.pushbatfile}" append="false"/> + <foreach item="File" property="filename"> + <in> + <items> + <include name="${build.dir}/${nugetdeploy.subdir}/*.nupkg"/> + </items> + </in> + <do> + <echo message="nuget push -source http://packages.nuget.org/v1/ ${filename} %1 ${environment::newline()}" file="${nugetdeploy.pushbatfile}" append="true"/> + </do> + </foreach> </target> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |