From 051934d0af33e386af1fac8c43d814bddd6cc9d5 Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Sat, 27 Jan 2018 12:34:35 +1300 Subject: [PATCH 1/2] Refactoring of NAnt build files - Remove unused targets and properties - Move targets from common-project.xml closer to the usage --- Tools/msbuild.cmd | 1 - build-common/common-project.xml | 166 -------------------------------- build-common/common.xml | 96 +++--------------- default.build | 152 ++++++++++++++++++++++++++--- doc/documentation.build | 2 +- src/NHibernate.Everything.sln | 1 - teamcity.build | 4 +- 7 files changed, 153 insertions(+), 269 deletions(-) delete mode 100644 Tools/msbuild.cmd delete mode 100644 build-common/common-project.xml diff --git a/Tools/msbuild.cmd b/Tools/msbuild.cmd deleted file mode 100644 index 32e35d11acd..00000000000 --- a/Tools/msbuild.cmd +++ /dev/null @@ -1 +0,0 @@ -dotnet msbuild %* diff --git a/build-common/common-project.xml b/build-common/common-project.xml deleted file mode 100644 index 4d358568bed..00000000000 --- a/build-common/common-project.xml +++ /dev/null @@ -1,166 +0,0 @@ - - - - - ; - ; - - These lines should be placed at the top level under the - element. Property root.dir defines a relative path to the root of the - distribution, that is, NHibernate directory. - - After including the file, a target should be defined to initialize - configuration variables according to the project being built. - The standard name of this target is init (but any other name can be chosen). - The init target should depend on (or call) target common.init defined - in this file. - - Other predefined targets are: - - - common.compile-all - compile a solution, generating the documentation file (.xml) - - - common.run-tests - run compiled NUnit tests. - - All compile/run targets put the output in bin.dir. Common.compile* - targets use source fileset with id="project.sources", assembly fileset - with id="project.references" and resource fileset with id="project.resources" - to compile the project. The source and resource filesets are optional and - default to **/*.cs files and no files respectively. - ]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/build-common/common.xml b/build-common/common.xml index 2b69e9167c0..63cfa3f6558 100644 --- a/build-common/common.xml +++ b/build-common/common.xml @@ -1,13 +1,5 @@ - - - - - - - @@ -36,27 +25,10 @@ - - - - - - - - - - - - - - + - - - - - - + + @@ -64,60 +36,18 @@ - - - - - - - - - - - - - + + - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/default.build b/default.build index 997a8d5ac26..7f3774524a5 100644 --- a/default.build +++ b/default.build @@ -7,16 +7,11 @@ - + - - @@ -25,20 +20,61 @@ + + + + + + + depends="init prepare-build-directory nuget.set-properties" + description="Builds NHibernate in the current configuration"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - Running with ${framework::get-target-framework()} - - @@ -49,10 +85,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/doc/documentation.build b/doc/documentation.build index b8b5c08a600..32c673b8f53 100644 --- a/doc/documentation.build +++ b/doc/documentation.build @@ -7,7 +7,7 @@ > - + diff --git a/src/NHibernate.Everything.sln b/src/NHibernate.Everything.sln index 234a401f88f..c2c257360fc 100644 --- a/src/NHibernate.Everything.sln +++ b/src/NHibernate.Everything.sln @@ -28,7 +28,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Projects", "Projects", "{28 EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NAnt Build", "NAnt Build", "{4CE16C2F-EFF6-48A4-99BC-8984DCC143FA}" ProjectSection(SolutionItems) = preProject - ..\build-common\common-project.xml = ..\build-common\common-project.xml ..\build-common\common.xml = ..\build-common\common.xml ..\default.build = ..\default.build EndProjectSection diff --git a/teamcity.build b/teamcity.build index 9a5d35b3815..f3183f7159d 100644 --- a/teamcity.build +++ b/teamcity.build @@ -17,8 +17,8 @@ - - + + From 90b2a996bcc3a3ee07866a690dbb7c7f7c5533a5 Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Sat, 27 Jan 2018 12:41:12 +1300 Subject: [PATCH 2/2] Make sources archive using git --- default.build | 40 ++-------------------------------------- 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/default.build b/default.build index 7f3774524a5..7f83ab2a508 100644 --- a/default.build +++ b/default.build @@ -208,44 +208,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +