Permalink
Browse files

Merging develop into master

  • Loading branch information...
2 parents 2d8a4de + a458e88 commit 1072925df7264cbace22a11823cba8b85a6e083e @phatboyg phatboyg committed Jul 8, 2011
Showing with 68,024 additions and 146,707 deletions.
  1. +10 −2 .gitignore
  2. +341 −0 MassTransit.ndproj
  3. +20 −4 README.markdown
  4. +12 −26 build.bat
  5. +0 −45 build.custom/compile.post.step
  6. +0 −27 build.custom/default.post.build
  7. +0 −137 build.custom/package.post.step
  8. +0 −28 build.custom/zip.pre.build
  9. +0 −5 build/UppercuT.xml
  10. +0 −50 build/analyze.step
  11. +0 −117 build/analyzers/gallio.test.step
  12. +0 −119 build/analyzers/mbunit2.test.step
  13. +0 −116 build/analyzers/moma.step
  14. +0 −158 build/analyzers/ncover.step
  15. +0 −68 build/analyzers/ndepend.step
  16. +0 −135 build/analyzers/nunit.test.step
  17. +0 −72 build/analyzers/test.step
  18. +0 −99 build/compile.step
  19. +0 −41 build/customize.bat
  20. +0 −76 build/customize.build
  21. +0 −50 build/customizers/item.template
  22. +0 −120 build/default.build
  23. +0 −76 build/deploymentBuilder.step
  24. +0 −92 build/environmentBuilder.step
  25. +0 −79 build/generateBuildInfo.step
  26. +0 −134 build/ilmerge.build
  27. +0 −58 build/open.build
  28. +0 −200 build/package.step
  29. +0 −54 build/policyChecks.step
  30. +0 −67 build/updateAssemblies.build
  31. +0 −121 build/versionBuilder.step
  32. +0 −79 build/versioners/git.step
  33. +0 −84 build/versioners/svn.step
  34. +0 −75 build/versioners/tfs.step
  35. +0 −111 build/zip.build
  36. +112 −0 build_support/BuildUtils.rb
  37. +65 −0 build_support/ilmerge.rb
  38. +24 −0 build_support/ilmergeconfig.rb
  39. +2 −0 build_support/internalize.txt
  40. +22 −0 build_support/util.rb
  41. +0 −37 deployment/scripts/database.deploy
  42. +0 −9 deployment/templates/AppDeployment.bat
  43. +0 −9 deployment/templates/DBDeployment.RESTORE.bat
  44. +0 −9 deployment/templates/DBDeployment.bat
  45. +130 −0 doc/Makefile
  46. +155 −0 doc/make.bat
  47. +256 −0 doc/source/conf.py
  48. +9 −0 doc/source/configuration/gotchas.rst
  49. +13 −0 doc/source/configuration/index.rst
  50. +48 −0 doc/source/configuration/interfaces.rst
  51. +163 −0 doc/source/configuration/keyideas.rst
  52. +82 −0 doc/source/configuration/quickstart.rst
  53. +27 −0 doc/source/index.rst
  54. +13 −0 doc/source/installation/bugs.rst
  55. +59 −0 doc/source/installation/help.rst
  56. +13 −0 doc/source/installation/index.rst
  57. +54 −0 doc/source/installation/install.rst
  58. +24 −0 doc/source/installation/prerequisites.rst
  59. +4 −0 doc/source/installation/transports/loopback.rst
  60. +4 −0 doc/source/installation/transports/msmq.rst
  61. +4 −0 doc/source/installation/transports/rabbitmq.rst
  62. +9 −0 doc/source/overview/inbound.rst
  63. BIN doc/source/overview/inboundPipeline.png
  64. +11 −0 doc/source/overview/index.rst
  65. +29 −0 doc/source/overview/publishing.rst
  66. +4 −0 doc/source/overview/sending.rst
  67. +28 −0 doc/source/overview/subscriptions.rst
  68. +26 −0 doc/source/overview/terms.rst
  69. +19 −0 doc/source/overview/versioning.rst
  70. BIN lib/Amazon.SQS.dll
  71. BIN lib/Autofac/NET35/Autofac.Configuration.dll
  72. BIN lib/Autofac/NET35/Autofac.dll
  73. +6,069 −0 lib/Autofac/NET35/Autofac.xml
  74. BIN lib/Autofac/NET40/Autofac.Configuration.dll
  75. BIN lib/Autofac/NET40/Autofac.dll
  76. +6,117 −0 lib/Autofac/NET40/Autofac.xml
  77. BIN lib/Castle.Core/Castle.Core.dll
  78. +4,927 −0 lib/Castle.Core/Castle.Core.xml
  79. BIN lib/Castle.Windsor/Castle.Core.dll
  80. +0 −3,455 lib/Castle.Windsor/Castle.Core.xml
  81. BIN lib/Castle.Windsor/Castle.DynamicProxy2.dll
  82. +0 −1,471 lib/Castle.Windsor/Castle.DynamicProxy2.xml
  83. BIN lib/Castle.Windsor/Castle.Facilities.Logging.dll
  84. +0 −75 lib/Castle.Windsor/Castle.Facilities.Logging.xml
  85. BIN lib/Castle.Windsor/Castle.MicroKernel.dll
  86. +0 −5,672 lib/Castle.Windsor/Castle.MicroKernel.xml
  87. BIN lib/Castle.Windsor/Castle.Services.Logging.log4netIntegration.dll
  88. +0 −59 lib/Castle.Windsor/Castle.Services.Logging.log4netIntegration.xml
  89. BIN lib/Castle.Windsor/Castle.Windsor.dll
  90. +7,014 −839 lib/Castle.Windsor/Castle.Windsor.xml
  91. 0 lib/Castle.Windsor/v2.1.1.txt
  92. BIN lib/Enyim.Caching.dll
  93. BIN lib/FluentNHibernate/Antlr3.Runtime.dll
  94. BIN lib/FluentNHibernate/Castle.Core.dll
  95. +0 −3,197 lib/FluentNHibernate/Castle.Core.xml
  96. BIN lib/FluentNHibernate/Castle.DynamicProxy2.dll
  97. +0 −1,249 lib/FluentNHibernate/Castle.DynamicProxy2.xml
  98. +0 −2,191 lib/FluentNHibernate/FluentNHibernate.XML
  99. BIN lib/FluentNHibernate/FluentNHibernate.dll
  100. BIN lib/FluentNHibernate/FluentNHibernate.pdb
  101. BIN lib/FluentNHibernate/Iesi.Collections.dll
  102. +0 −1,903 lib/FluentNHibernate/Iesi.Collections.xml
  103. BIN lib/FluentNHibernate/NHibernate.ByteCode.Castle.dll
  104. BIN lib/FluentNHibernate/NHibernate.Linq.dll
  105. +0 −725 lib/FluentNHibernate/NHibernate.Linq.xml
  106. BIN lib/FluentNHibernate/NHibernate.dll
  107. +0 −40,436 lib/FluentNHibernate/NHibernate.xml
  108. +104 −0 lib/ILMerge/ILMerge License.rtf
  109. BIN lib/ILMerge/ILMerge.doc
  110. BIN lib/ILMerge/ILMerge.exe
  111. BIN lib/Iesi.Collections.dll
  112. BIN lib/Lucene.Net/Lucene.Net.dll
  113. +0 −18 lib/Magnum.Infrastructure.XML
  114. BIN lib/Magnum.Infrastructure.dll
  115. BIN lib/Magnum.Infrastructure.pdb
  116. +0 −12,076 lib/Magnum.XML
  117. BIN lib/Magnum.dll
  118. BIN lib/Magnum.pdb
  119. BIN lib/Magnum/net-3.5/DebugVisualizer/Magnum.Visualizers.dll
  120. BIN lib/Magnum/net-3.5/DebugVisualizer/Microsoft.GLEE.Drawing.dll
  121. BIN lib/Magnum/net-3.5/DebugVisualizer/Microsoft.GLEE.GraphViewerGDI.dll
  122. BIN lib/Magnum/net-3.5/DebugVisualizer/Microsoft.GLEE.dll
  123. BIN lib/Magnum/net-3.5/DebugVisualizer/QuickGraph.Glee.dll
  124. BIN lib/Magnum/net-3.5/DebugVisualizer/QuickGraph.dll
  125. BIN lib/Magnum/net-3.5/Magnum.Routing.dll
  126. BIN lib/Magnum/net-3.5/Magnum.Routing.pdb
  127. +45 −0 lib/Magnum/net-3.5/Magnum.Routing.xml
  128. BIN lib/Magnum/net-3.5/Magnum.dll
  129. BIN lib/Magnum/net-3.5/Magnum.pdb
  130. +30,568 −0 lib/Magnum/net-3.5/Magnum.xml
  131. BIN lib/Magnum/net-3.5/TestFramework/Magnum.TestFramework.dll
  132. BIN lib/Magnum/net-3.5/TestFramework/Magnum.TestFramework.pdb
  133. +23 −0 lib/Magnum/net-3.5/TestFramework/Magnum.TestFramework.xml
  134. BIN lib/Magnum/net-4.0/DebugVisualizer/Magnum.Visualizers.dll
  135. BIN lib/Magnum/net-4.0/DebugVisualizer/Microsoft.GLEE.Drawing.dll
  136. BIN lib/Magnum/net-4.0/DebugVisualizer/Microsoft.GLEE.GraphViewerGDI.dll
  137. BIN lib/Magnum/net-4.0/DebugVisualizer/Microsoft.GLEE.dll
  138. BIN lib/Magnum/net-4.0/DebugVisualizer/QuickGraph.Glee.dll
  139. BIN lib/Magnum/net-4.0/DebugVisualizer/QuickGraph.dll
  140. BIN lib/Magnum/net-4.0/Magnum.Routing.dll
  141. BIN lib/Magnum/net-4.0/Magnum.Routing.pdb
  142. +45 −0 lib/Magnum/net-4.0/Magnum.Routing.xml
  143. BIN lib/Magnum/net-4.0/Magnum.dll
  144. BIN lib/Magnum/net-4.0/Magnum.pdb
  145. +11,297 −0 lib/Magnum/net-4.0/Magnum.xml
  146. BIN lib/Magnum/net-4.0/TestFramework/Magnum.TestFramework.dll
  147. BIN lib/Magnum/net-4.0/TestFramework/Magnum.TestFramework.pdb
  148. +23 −0 lib/Magnum/net-4.0/TestFramework/Magnum.TestFramework.xml
  149. +0 −280 lib/Microsoft.Practices.ServiceLocation.XML
  150. BIN lib/MsBuild.Community.Tasks/ICSharpCode.SharpZipLib.dll
  151. +0 −104 lib/MsBuild.Community.Tasks/MSBuild.Community.Tasks.Targets
  152. BIN lib/MsBuild.Community.Tasks/MSBuild.Community.Tasks.dll
  153. BIN lib/MsBuild.Community.Tasks/MSBuild.Community.Tasks.pdb
  154. +0 −6,506 lib/MsBuild.Community.Tasks/MSBuild.Community.Tasks.xml
  155. +0 −4,293 lib/MsBuild.Community.Tasks/MSBuild.Community.Tasks.xsd
  156. +0 −738 lib/MsBuild.Community.Tasks/NUnitReport.xsl
  157. BIN lib/MsBuild/Microsoft.Build.Framework.dll
  158. BIN lib/NAnt/Castle.Core.dll
  159. BIN lib/NAnt/Castle.DynamicProxy2.dll
  160. BIN lib/NAnt/Castle.MicroKernel.dll
  161. BIN lib/NAnt/Castle.Windsor.dll
  162. BIN lib/NAnt/CollectionGen.dll
  163. BIN lib/NAnt/Interop.MsmMergeTypeLib.dll
  164. BIN lib/NAnt/Interop.StarTeam.dll
  165. BIN lib/NAnt/Interop.WindowsInstaller.dll
  166. BIN lib/NAnt/MSITaskErrors.mst
  167. BIN lib/NAnt/MSITaskTemplate.msi
  168. BIN lib/NAnt/MSMTaskErrors.mst
  169. BIN lib/NAnt/MSMTaskTemplate.msm
  170. BIN lib/NAnt/MbUnit.Framework.dll
  171. BIN lib/NAnt/MbUnit.Tasks.dll
  172. BIN lib/NAnt/NAnt.CompressionTasks.dll
  173. +0 −711 lib/NAnt/NAnt.CompressionTasks.xml
  174. BIN lib/NAnt/NAnt.Contrib.Tasks.dll
  175. +0 −18,933 lib/NAnt/NAnt.Contrib.Tasks.xml
  176. BIN lib/NAnt/NAnt.Core.dll
  177. +0 −16,014 lib/NAnt/NAnt.Core.xml
  178. BIN lib/NAnt/NAnt.DotNetTasks.dll
  179. +0 −5,334 lib/NAnt/NAnt.DotNetTasks.xml
  180. BIN lib/NAnt/NAnt.MSNetTasks.dll
  181. +0 −579 lib/NAnt/NAnt.MSNetTasks.xml
  182. BIN lib/NAnt/NAnt.NUnit.dll
  183. +0 −353 lib/NAnt/NAnt.NUnit.xml
  184. BIN lib/NAnt/NAnt.NUnit1Tasks.dll
  185. +0 −538 lib/NAnt/NAnt.NUnit1Tasks.xml
  186. BIN lib/NAnt/NAnt.NUnit2Tasks.dll
  187. +0 −584 lib/NAnt/NAnt.NUnit2Tasks.xml
  188. BIN lib/NAnt/NAnt.SourceControlTasks.dll
  189. +0 −1,279 lib/NAnt/NAnt.SourceControlTasks.xml
  190. BIN lib/NAnt/NAnt.VSNetTasks.dll
  191. +0 −3,961 lib/NAnt/NAnt.VSNetTasks.xml
  192. BIN lib/NAnt/NAnt.VisualCppTasks.dll
  193. +0 −1,211 lib/NAnt/NAnt.VisualCppTasks.xml
  194. BIN lib/NAnt/NAnt.Win32Tasks.dll
  195. +0 −690 lib/NAnt/NAnt.Win32Tasks.xml
  196. BIN lib/NAnt/NAnt.exe
  197. +0 −2,126 lib/NAnt/NAnt.exe.config
  198. +0 −78 lib/NAnt/NAnt.xml
  199. BIN lib/NAnt/NCoverExplorer.NAntTasks.dll
  200. +0 −1,364 lib/NAnt/NCoverExplorer.NAntTasks.xml
  201. BIN lib/NAnt/NDepend.Build.NAntTasks.dll
  202. BIN lib/NAnt/NDoc.Documenter.NAnt.dll
  203. BIN lib/NAnt/QuickGraph.Algorithms.dll
  204. BIN lib/NAnt/QuickGraph.dll
  205. BIN lib/NAnt/SLiNgshoT.Core.dll
  206. BIN lib/NAnt/SLiNgshoT.exe
  207. BIN lib/NAnt/SourceSafe.Interop.dll
  208. BIN lib/NAnt/ThoughtWorks.CruiseControl.MSBuild.dll
  209. BIN lib/NAnt/extensions/common/2.0/NAnt.MSBuild.dll
  210. +0 −36 lib/NAnt/extensions/common/2.0/NAnt.MSBuild.xml
  211. BIN lib/NAnt/lib/common/1.1/nunit-console-runner.dll
  212. BIN lib/NAnt/lib/common/1.1/nunit-console.exe
  213. BIN lib/NAnt/lib/common/1.1/nunit.core.dll
  214. BIN lib/NAnt/lib/common/1.1/nunit.framework.dll
  215. BIN lib/NAnt/lib/common/1.1/nunit.util.dll
  216. BIN lib/NAnt/lib/common/2.0/nunit-console-runner.dll
  217. BIN lib/NAnt/lib/common/2.0/nunit-console.exe
  218. BIN lib/NAnt/lib/common/2.0/nunit.core.dll
  219. BIN lib/NAnt/lib/common/2.0/nunit.framework.dll
  220. BIN lib/NAnt/lib/common/2.0/nunit.util.dll
  221. BIN lib/NAnt/lib/common/neutral/ICSharpCode.SharpCvsLib.Console.dll
  222. BIN lib/NAnt/lib/common/neutral/ICSharpCode.SharpCvsLib.dll
  223. BIN lib/NAnt/lib/common/neutral/ICSharpCode.SharpZipLib.dll
  224. BIN lib/NAnt/lib/common/neutral/NDoc.Core.dll
  225. BIN lib/NAnt/lib/common/neutral/NDoc.Documenter.Msdn.dll
  226. BIN lib/NAnt/lib/common/neutral/NDoc.ExtendedUI.dll
  227. BIN lib/NAnt/lib/common/neutral/NUnitCore.dll
  228. BIN lib/NAnt/lib/mono/1.0/NDoc.Core.dll
  229. BIN lib/NAnt/lib/mono/1.0/NDoc.Documenter.Msdn.dll
  230. BIN lib/NAnt/lib/mono/1.0/NDoc.ExtendedUI.dll
  231. BIN lib/NAnt/lib/mono/1.0/nunit.core.dll
  232. BIN lib/NAnt/lib/mono/1.0/nunit.framework.dll
  233. BIN lib/NAnt/lib/mono/1.0/nunit.util.dll
  234. BIN lib/NAnt/lib/mono/2.0/NDoc.Core.dll
  235. BIN lib/NAnt/lib/mono/2.0/NDoc.Documenter.Msdn.dll
  236. BIN lib/NAnt/lib/mono/2.0/NDoc.ExtendedUI.dll
  237. BIN lib/NAnt/lib/mono/2.0/nunit.core.dll
  238. BIN lib/NAnt/lib/mono/2.0/nunit.framework.dll
  239. BIN lib/NAnt/lib/mono/2.0/nunit.util.dll
  240. BIN lib/NAnt/lib/net/1.0/NDoc.Core.dll
  241. BIN lib/NAnt/lib/net/1.0/NDoc.Documenter.Msdn.dll
  242. BIN lib/NAnt/lib/net/1.0/NDoc.ExtendedUI.dll
  243. BIN lib/NAnt/lib/net/1.0/nunit-console-runner.dll
  244. BIN lib/NAnt/lib/net/1.0/nunit-console.exe
  245. BIN lib/NAnt/lib/net/1.0/nunit.core.dll
  246. BIN lib/NAnt/lib/net/1.0/nunit.framework.dll
  247. BIN lib/NAnt/lib/net/1.0/nunit.util.dll
  248. BIN lib/NAnt/lib/net/1.1/NDoc.Core.dll
  249. BIN lib/NAnt/lib/net/1.1/NDoc.Documenter.Msdn.dll
  250. BIN lib/NAnt/lib/net/1.1/NDoc.ExtendedUI.dll
  251. BIN lib/NAnt/lib/net/1.1/nunit.core.dll
  252. BIN lib/NAnt/lib/net/1.1/nunit.framework.dll
  253. BIN lib/NAnt/lib/net/1.1/nunit.util.dll
  254. BIN lib/NAnt/lib/net/2.0/NDoc.Core.dll
  255. BIN lib/NAnt/lib/net/2.0/NDoc.Documenter.Msdn.dll
  256. BIN lib/NAnt/lib/net/2.0/NDoc.ExtendedUI.dll
  257. BIN lib/NAnt/lib/net/2.0/nunit.core.dll
  258. BIN lib/NAnt/lib/net/2.0/nunit.framework.dll
  259. BIN lib/NAnt/lib/net/2.0/nunit.util.dll
  260. BIN lib/NAnt/log4net.dll
  261. BIN lib/NAnt/scvs.exe
  262. BIN lib/NAnt/uppercut.dll
  263. BIN lib/NAnt/uppercut.tasks.dll
  264. +0 −287 lib/NCover/ActiproEULA.html
  265. BIN lib/NCover/ActiproSoftware.Shared.Net11.dll
  266. BIN lib/NCover/ActiproSoftware.SyntaxEditor.Net11.dll
  267. BIN lib/NCover/ActiproSoftware.WinUICore.Net11.dll
  268. BIN lib/NCover/CommandBars.dll
  269. +0 −123 lib/NCover/ConsoleConfig.xsd
  270. +0 −94 lib/NCover/ConsoleExample.config
  271. BIN lib/NCover/CoverLib.dll
  272. +0 −339 lib/NCover/Coverage.xsl
  273. +0 −468 lib/NCover/CoverageReport.xsl
  274. BIN lib/NCover/ICSharpCode.TextEditor.dll
  275. +0 −334 lib/NCover/LicencePersonal.rtf
  276. BIN lib/NCover/MSVCP80.dll
  277. BIN lib/NCover/MSVCR80.dll
  278. +0 −8 lib/NCover/Microsoft.VC80.CRT.manifest
  279. BIN lib/NCover/NCover.Console.exe
  280. +0 −6 lib/NCover/NCover.Console.exe.config
  281. BIN lib/NCover/NCover.Framework.dll
  282. BIN lib/NCover/NCoverExplorer.Console.exe
  283. BIN lib/NCover/NCoverExplorer.Core.dll
  284. BIN lib/NCover/NCoverExplorer.NCoverRunner.dll
  285. BIN lib/NCover/NCoverExplorer.WinForms.dll
  286. BIN lib/NCover/NCoverExplorer.exe
  287. +0 −8 lib/NCover/NCoverExplorer.exe.config
  288. +0 −303 lib/NCover/NCoverExplorerFAQ.html
  289. +0 −874 lib/NCover/NCoverExplorerReleaseNotes.html
  290. +0 −429 lib/NCover/NCoverFAQ.html
  291. +0 −15 lib/NCover/VC80CRT.MAN
  292. +0 −299 lib/NCover/license.txt
  293. +0 −1,159 lib/NDepend_2_9_1_2235/CruiseControl.NET/ndependreport-ccnet.v2.xsl
  294. +0 −94 lib/NDepend_2_9_1_2235/EULA.txt
  295. BIN lib/NDepend_2_9_1_2235/Lib/DevExpress.Data.v7.2.dll
  296. BIN lib/NDepend_2_9_1_2235/Lib/DevExpress.Data.v7.3.dll
  297. BIN lib/NDepend_2_9_1_2235/Lib/DevExpress.OfficeSkins.v7.3.dll
  298. BIN lib/NDepend_2_9_1_2235/Lib/DevExpress.Utils.v7.3.dll
  299. BIN lib/NDepend_2_9_1_2235/Lib/DevExpress.XtraBars.v7.3.dll
  300. BIN lib/NDepend_2_9_1_2235/Lib/DevExpress.XtraEditors.v7.3.dll
Sorry, we could not display the entire diff because too many files (2,077) changed.
View
12 .gitignore
@@ -1,8 +1,10 @@
build_output/*
-code_drop/*
+build_artifacts/*
*.suo
*.user
+NDependOut/*
+
src/logs/*
**/*.sln*
@@ -22,5 +24,11 @@ _ReSharper*
TestResult.xml
submit.xml
-src/tests/*
+tests/*
SolutionVersion.cs
+src/SolutionVersion.cs
+tests
+doc/build/*
+
+# osx noise
+.DS_Store
View
341 MassTransit.ndproj
341 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
24 README.markdown
@@ -15,22 +15,38 @@ MassTransit is lean service bus implementation for building loosely coupled appl
## Getting started with Mass Transit
### Documentation
-Documentation is located at [http://masstransit.pbworks.com/](http://masstransit.pbworks.com/).
+
+Documentation is located at [http://docs.masstransit-project.com/](http://docs.masstransit-project.com/).
+
### Downloads
+ Download straight from NuGet 'MassTransit' [Search NuGet for MassTransit](http://nuget.org/List/Search?packageType=Packages&searchCategory=All+Categories&searchTerm=MassTransit&sortOrder=package-download-count&pageSize=10)
+
+ Download officially released builds from
+ [Github](http://github.com/masstransit/masstransit/downloads/).
+
+ Download Nightly Binaries from [TeamCity](http://teamcity.codebetter.com/viewType.html?buildTypeId=bt8&tab=buildTypeStatusDiv).
- Download Binaries from [TeamCity](http://teamcity.codebetter.com/viewType.html?buildTypeId=bt8&tab=buildTypeStatusDiv).
+### Mailing List
+
+[MassTransit Discuss](http://groups.google.com/group/masstransit-discuss)
### Source
1. Clone the source down to your machine.
- `git clone git://github.com/phatboyg/masstransit.git`
+ `git clone git://github.com/MassTransit/MassTransit.git`
2. Run `build.bat`. NOTE: You must have git on the path (open a regular command line and type git).
+### Contributing
+
+1. `git config --global core.autoclrf false`
+2. Shared ReSharper settings are under src/MassTransit.resharper.xml
+3. Make a pull request
+
# REQUIREMENTS
* .NET Framework 3.5
# CREDITS
Logo Design by [The Agile Badger](http://www.theagilebadger.com)
-UppercuT - Automated Builds in moments, not days! [Project UppercuT](http://projectuppercut.org)
+UppercuT - Automated Builds in moments, not days! [Project UppercuT](http://projectuppercut.org)
View
38 build.bat
@@ -1,32 +1,18 @@
@echo off
-::Project UppercuT - http://uppercut.googlecode.com
-::No edits to this file are required - http://uppercut.pbwiki.com
+echo Building for .NET 3.5
+call rake all BUILD_CONFIG_KEY=NET35
+IF NOT %ERRORLEVEL% == 0 goto FAILED
-if '%2' NEQ '' goto usage
-if '%3' NEQ '' goto usage
-if '%1' == '/?' goto usage
-if '%1' == '-?' goto usage
-if '%1' == '?' goto usage
-if '%1' == '/help' goto usage
+echo Building for .NET 4.0
+call rake unclean
+IF NOT %ERRORLEVEL% == 0 goto FAILED
-SET DIR=%~d0%~p0%
-SET NANT="%DIR%lib\Nant\nant.exe"
-SET build.config.settings="%DIR%settings\UppercuT.config"
+echo Creating NuGet package
+call rake nuget
+IF NOT %ERRORLEVEL% == 0 goto FAILED
-%NANT% %1 /f:.\build\default.build -D:build.config.settings=%build.config.settings%
+echo Create ZIP package
+call rake package
-if %ERRORLEVEL% NEQ 0 goto errors
-
-goto finish
-
-:usage
-echo.
-echo Usage: build.bat
-echo.
-goto finish
-
-:errors
-EXIT /B %ERRORLEVEL%
-
-:finish
+:FAILED
View
45 build.custom/compile.post.step
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<project name="CUSTOM POST COMPILE" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value=".." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="dirs.build_scripts" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts}" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.code_drop" value="code_drop" overwrite="false" />
- <property name="dirs.drop" value="${dirs.current}\${path.to.toplevel}\${folder.code_drop}" overwrite="false" />
- <property name="folder.app.drop" value="${project.name}" overwrite="false" />
- <property name="folder.reports" value="${project.name}.Reports" overwrite="false" />
- <property name="dirs.reports" value="${dirs.current}\${path.to.toplevel}\${folder.reports}" overwrite="false" />
- <property name="folder.file_server" value="file.server" overwrite="false" />
- <property name="dirs.file_server" value="${dirs.current}\${path.to.toplevel}\${folder.file_server}" overwrite="false" />
- <property name="folder.environment_files" value="environment.files" overwrite="false" />
- <property name="dirs.environment_files" value="${dirs.current}\${path.to.toplevel}\${folder.environment_files}" overwrite="false" />
- <property name="folder.deployment" value="deployment" overwrite="false" />
- <property name="dirs.deployment" value="${dirs.current}\${path.to.toplevel}\${folder.deployment}" overwrite="false" />
- <property name="folder.settings" value="settings" overwrite="false" />
- <property name="dirs.settings" value="${dirs.current}\${path.to.toplevel}\${folder.settings}" overwrite="false" />
- <property name="folder.documentation" value="docs" overwrite="false" />
- <property name="dirs.docs" value="${dirs.current}\${path.to.toplevel}\${folder.documentation}" overwrite="false" />
- <property name="folder.references" value="lib" overwrite="false" />
- <property name="dirs.lib" value="${dirs.current}\${path.to.toplevel}\${folder.references}" overwrite="false" />
- <property name="path_to_solution" value="." overwrite="false" /> <property name="folder.database" value="__DATABASE_FOLDER_NAME__" overwrite="false" />
- <property name="dirs.database" value="${dirs.current}\${path.to.toplevel}\${path_to_solution}\${folder.database}" overwrite="false" />
-
- <target name="go" depends="copy_db" />
-
- <target name="copy_db">
- <echo message="Building database files to ${dirs.build}\${folder.database}."/>
- <copy todir="${dirs.build}\${folder.database}">
- <fileset basedir="${dirs.database}">
- <include name="**/*.*" />
- </fileset>
- </copy>
- </target>
-
-</project>
View
27 build.custom/default.post.build
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="UppercuTBuild" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="default" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\..\${folder.build_scripts_custom}" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\..\${folder.code_build}" />
- <property name="folder.code_drop" value="code_drop" overwrite="false" />
- <property name="dirs.drop" value="${dirs.current}\..\${folder.code_drop}" overwrite="false" />
- <property name="repository.path" value="__REPOSITORY_PATH__" overwrite="false" />
- <property name="source_control_type" value="svn" overwrite="false" />
- <property name="version.uppercut" value="0" />
- <property name="version.revision" value="0" />
- <property name="version.build" value="0" />
-
- <target name="go" depends="run_tasks" />
-
- <target name="run_tasks">
- <echo message="Custom ${project::get-name()} tasks." />
- </target>
-
-</project>
View
137 build.custom/package.post.step
@@ -1,137 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<project name="CUSTOM POST PACKAGE" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value=".." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="dirs.build_scripts" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts}" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.code_drop" value="code_drop" overwrite="false" />
- <property name="dirs.drop" value="${dirs.current}\${path.to.toplevel}\${folder.code_drop}" overwrite="false" />
- <property name="folder.app.drop" value="${project.name}" overwrite="false" />
- <property name="folder.database" value="__DATABASE_FOLDER_NAME__" overwrite="false" />
- <property name="dirs.database" value="${dirs.current}\${path.to.toplevel}\${folder.database}" overwrite="false" />
- <property name="folder.reports" value="${project.name}.Reports" overwrite="false" />
- <property name="dirs.reports" value="${dirs.current}\${path.to.toplevel}\${folder.reports}" overwrite="false" />
- <property name="folder.file_server" value="file.server" overwrite="false" />
- <property name="dirs.file_server" value="${dirs.current}\${path.to.toplevel}\${folder.file_server}" overwrite="false" />
- <property name="folder.environment_files" value="environment.files" overwrite="false" />
- <property name="dirs.environment_files" value="${dirs.current}\${path.to.toplevel}\${folder.environment_files}" overwrite="false" />
- <property name="folder.deployment" value="deployment" overwrite="false" />
- <property name="dirs.deployment" value="${dirs.current}\${path.to.toplevel}\${folder.deployment}" overwrite="false" />
- <property name="folder.settings" value="settings" overwrite="false" />
- <property name="dirs.settings" value="${dirs.current}\${path.to.toplevel}\${folder.settings}" overwrite="false" />
- <property name="folder.documentation" value="docs" overwrite="false" />
- <property name="dirs.docs" value="${dirs.current}\${path.to.toplevel}\${folder.documentation}" overwrite="false" />
- <property name="folder.references" value="lib" overwrite="false" />
- <property name="dirs.lib" value="${dirs.current}\${path.to.toplevel}\${folder.references}" overwrite="false" />
- <property name="dirs.rh" value="${dirs.lib}\RoundhousE" overwrite="false" />
-
- <target name="go" depends="package_roundhouse, package_legacy, package_runtime" />
-
- <target name="package_roundhouse">
- <echo message="Packaging roundhouse files to ${dirs.drop}\${folder.deployment}."/>
- <copy todir="${dirs.drop}\${folder.deployment}">
- <fileset basedir="${dirs.rh}">
- <include name="**/*.*" />
- </fileset>
- </copy>
-
- <move file="${dirs.drop}\${folder.deployment}\rh.exe" tofile="${dirs.drop}\${folder.deployment}\tools\rh.exe" />
- </target>
- <target name="package_legacy">
- <echo message="Packaging legacy support application to ${dirs.drop}\legacy."/>
- <copy todir="${dirs.drop}\legacy">
- <fileset basedir="${dirs.drop}\MassTransit">
- <include name="Antlr3.Runtime.dll" />
- <include name="Castle.Core.dll" />
- <include name="Castle.Core.xml" />
- <include name="Castle.DynamicProxy2.dll" />
- <include name="Castle.DynamicProxy2.xml" />
- <include name="FluentNHibernate.dll" />
- <include name="FluentNHibernate.xml" />
- <include name="Iesi.Collections.dll" />
- <include name="Iesi.Collections.xml" />
- <include name="log4net.dll" />
- <include name="log4net.xml" />
- <include name="Magnum.dll" />
- <include name="Magnum.pdb" />
- <include name="Magnum.xml" />
- <include name="Magnum.Infrastructure.dll" />
- <include name="Magnum.Infrastructure.pdb" />
- <include name="Magnum.Infrastructure.xml" />
- <include name="MassTransit.dll" />
- <include name="MassTransit.Infrastructure.dll" />
- <include name="MassTransit.Infrastructure.pdb" />
- <include name="MassTransit.LegacySupport.dll" />
- <include name="MassTransit.LegacySupport.log4net.xml" />
- <include name="MassTransit.LegacySupport.pdb" />
- <include name="MassTransit.StructureMapIntegration.XML" />
- <include name="MassTransit.StructureMapIntegration.dll" />
- <include name="MassTransit.StructureMapIntegration.pdb" />
- <include name="MassTransit.Transports.Msmq.XML" />
- <include name="MassTransit.Transports.Msmq.dll" />
- <include name="MassTransit.Transports.Msmq.pdb" />
- <include name="NHibernate.dll" />
- <include name="NHibernate.ByteCode.Castle.dll" />
- <include name="NHibernate.Linq.dll" />
- <include name="StructureMap.dll" />
- <include name="Topshelf.dll" />
-
- <!-- move? -->
- <include name="LegacyRuntime.exe" />
- <include name="LegacyRuntime.exe.config" />
- <include name="LegacyRuntime.pdb" />
- </fileset>
- </copy>
- </target>
-
- <target name="package_runtime">
- <echo message="Packaging runtime support application to ${dirs.drop}\runtime."/>
- <copy todir="${dirs.drop}\runtime">
- <fileset basedir="${dirs.drop}\MassTransit">
- <include name="Antlr3.Runtime.dll" />
- <include name="Castle.Core.dll" />
- <include name="Castle.Core.xml" />
- <include name="Castle.DynamicProxy2.dll" />
- <include name="Castle.DynamicProxy2.xml" />
- <include name="FluentNHibernate.dll" />
- <include name="FluentNHibernate.xml" />
- <include name="Iesi.Collections.dll" />
- <include name="Iesi.Collections.xml" />
- <include name="log4net.dll" />
- <include name="log4net.xml" />
- <include name="Magnum.dll" />
- <include name="Magnum.pdb" />
- <include name="Magnum.xml" />
- <include name="Magnum.Infrastructure.dll" />
- <include name="Magnum.Infrastructure.pdb" />
- <include name="Magnum.Infrastructure.xml" />
- <include name="MassTransit.dll" />
- <include name="MassTransit.Infrastructure.dll" />
- <include name="MassTransit.Infrastructure.pdb" />
- <include name="MassTransit.StructureMapIntegration.XML" />
- <include name="MassTransit.StructureMapIntegration.dll" />
- <include name="MassTransit.StructureMapIntegration.pdb" />
- <include name="MassTransit.Transports.Msmq.XML" />
- <include name="MassTransit.Transports.Msmq.dll" />
- <include name="MassTransit.Transports.Msmq.pdb" />
- <include name="NHibernate.dll" />
- <include name="NHibernate.ByteCode.Castle.dll" />
- <include name="NHibernate.Linq.dll" />
- <include name="StructureMap.dll" />
- <include name="Topshelf.dll" />
-
- <!-- move? -->
- <include name="MassTransit.RuntimeServices.exe" />
- <include name="MassTransit.RuntimeServices.exe.config" />
- <include name="MassTransit.RuntimeServices.pdb" />
- </fileset>
- </copy>
- </target>
-</project>
View
28 build.custom/zip.pre.build
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="ZipPreRunner" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="folder.code_drop" value="code_drop" overwrite="false" />
- <property name="dirs.drop" value="${dirs.current}\..\${folder.code_drop}" overwrite="false" />
- <property name="folder.build_artifacts" value="build_artifacts" overwrite="false" />
- <property name="dirs.drop.build.artifacts" value="${dirs.drop}\${folder.build_artifacts}" overwrite="false" />
- <property name="folder.app.drop" value="app" overwrite="false" />
- <property name="folder.deployment" value="deployment" overwrite="false" />
- <property name="folder.settings" value="settings" overwrite="false" />
-
-
- <target name="go" depends="remove_unnecessary_folders" description="Packaging" />
-
- <target name="remove_unnecessary_folders">
- <echo message="Removing ${dirs.drop.build.artifacts}."/>
- <delete dir="${dirs.drop.build.artifacts}" failonerror="false" />
- <echo message="Removing ${dirs.drop}\${folder.deployment}."/>
- <delete dir="${dirs.drop}\${folder.deployment}" failonerror="false" />
- <echo message="Removing ${dirs.drop}\${folder.settings}."/>
- <delete dir="${dirs.drop}\${folder.settings}" failonerror="false" />
- </target>
-
-
-</project>
View
5 build/UppercuT.xml
@@ -1,5 +0,0 @@
-<?xml version="1.0" ?>
-<uppercut>
- <version>0.9.0.263</version>
-</uppercut>
-
View
50 build/analyze.step
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="Analyzer" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom folder with file by the same name - find out more at http://uppercut.pbwiki.com -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="analyze" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value=".." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}" />
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
-
- <target name="go" depends="run_tasks" />
-
- <target name="run_tasks">
- <echo message="Running ${project::get-name()} tasks." />
- <call target="prepare" if="${target::exists('prepare')}" />
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
- <call target="run_normal_tasks" if="${not file::exists(file.custom.step.replace)}" />
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" />
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
- </target>
-
- <target name="run_normal_tasks"
- depends="run_analyzers"
- description="Analyzing project for quality indicators." />
-
- <target name="custom_tasks_before">
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="false" />
- </target>
-
- <target name="run_analyzers">
- <nant buildfile="${dirs.current}\analyzers\test.step" inheritall="true" />
- <nant buildfile="${dirs.current}\analyzers\ncover.step" inheritall="true" failonerror="false" />
- <nant buildfile="${dirs.current}\analyzers\ndepend.step" inheritall="true" failonerror="false" />
- <nant buildfile="${dirs.current}\analyzers\moma.step" inheritall="true" failonerror="false" />
- </target>
-
- <target name="custom_tasks_after">
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="false" />
- </target>
-
-</project>
View
117 build/analyzers/gallio.test.step
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="GallioTester" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <!-- DO NOT EDIT THIS FILE - This follows a convention for testing with Integration tests being separated from Unit tests - find out more at http://uppercut.pbwiki.com -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="gallio.test" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value="..\.." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\analyzers" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.app.drop" value="${project.name}" overwrite="false" />
- <property name="dirs.build.code" value="${dirs.build}\${folder.app.drop}" overwrite="false" />
- <property name="folder.build_artifacts" value="build_artifacts" overwrite="false" />
- <property name="dirs.build_artifacts" value="${path::get-full-path(dirs.build)}\${folder.build_artifacts}" />
- <property name="dirs.test_results" value="${dirs.build_artifacts}\gallio" overwrite="false" />
- <property name="file.test_results" value="gallio-results" overwrite="false" />
- <property name="time.limit.in.seconds" value="240" />
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
-
- <target name="go" depends="run_tasks" />
-
- <target name="run_tasks">
- <echo message="Running ${project::get-name()} tasks." />
- <call target="prepare" if="${target::exists('prepare')}" />
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
- <call target="run_normal_tasks" if="${not file::exists(file.custom.step.replace)}" />
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" />
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
- </target>
-
- <target name="run_normal_tasks"
- depends="run_tests"
- description="Testing with Gallio." />
-
- <target name="custom_tasks_before">
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="false" />
- </target>
-
- <target name="prepare">
- <echo message="Removing and adding ${dirs.test_results}."/>
- <delete dir="${dirs.test_results}" failonerror="false" />
- <mkdir dir="${dirs.test_results}" />
- </target>
-
- <target name="load_tasks">
- <echo message="Loading Gallio Nant Tasks from Program Files." />
- <loadtasks assembly="C:\Program Files (x86)\Gallio\bin\Gallio.NAntTasks.dll" if="${file::exists('C:\Program Files (x86)\Gallio\bin\Gallio.NAntTasks.dll')}" />
- <loadtasks assembly="C:\Program Files\Gallio\bin\Gallio.NAntTasks.dll" if="${file::exists('C:\Program Files\Gallio\bin\Gallio.NAntTasks.dll')}" />
- </target>
-
- <target name="run_tests" depends="prepare,load_tasks" description="Running Unit Tests">
- <echo message="Running tests using Gallio and putting results in ${dirs.test_results}."/>
- <gallio working-directory="${dirs.build}"
- report-types="Html;Xml;Text"
- report-directory="${dirs.test_results}"
- report-name-format="${file.test_results}"
- show-reports="false"
- failonerror="true"
- verbosity="Normal"
- echo-results="true"
- run-time-limit="${time.limit.in.seconds}"
- filter="exclude Category:Database or Category:Integration or Category:Slow or Category:NotWorking or Categroy:Ignore or Category:database or Category:integration or Category:slow or Category:notworking or Categroy:ignore"
- >
- <files>
- <exclude name="${dirs.build.code}\*Database*dll" />
- <exclude name="${dirs.build.code}\*.Integration*dll" />
- <exclude name="${dirs.build.code}\TestFu.dll" />
- <include name="${dirs.build.code}\*Test*dll" />
- <include name="${dirs.build.code}\*.Spec*dll" />
- </files>
- </gallio>
- </target>
-
- <target name="run_all_tests" depends="prepare,load_tasks" description="Running All Unit Tests">
- <echo message="Running all tests (including integration tests) using Gallio and putting results in ${dirs.test_results}."/>
- <gallio working-directory="${dirs.build}"
- report-types="Html;Xml;Text"
- report-directory="${dirs.test_results}"
- report-name-format="${file.test_results}"
- show-reports="false"
- failonerror="true"
- verbosity="Normal"
- echo-results="true"
- run-time-limit="${time.limit.in.seconds}"
- >
- <files>
- <exclude name="${dirs.build.code}\TestFu.dll" />
- <include name="${dirs.build.code}\*Test*dll" />
- <include name="${dirs.build.code}\*.Spec*dll" />
- </files>
- </gallio>
- </target>
-
- <target name="open_results">
- <echo message="Opening results at ${path::get-full-path(dirs.test_results)}\${file.test_results}.html."/>
- <exec
- spawn="true"
- program="${environment::get-folder-path('ProgramFiles')}\Internet Explorer\iexplore.exe"
- commandline="${path::get-full-path(dirs.test_results)}\${file.test_results}.html"
- >
- </exec>
- </target>
-
- <target name="custom_tasks_after">
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="false" />
- </target>
-
-</project>
View
119 build/analyzers/mbunit2.test.step
@@ -1,119 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="MbUnit2Tester" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <!-- DO NOT EDIT THIS FILE - This follows a convention for testing with Integration tests being separated from Unit tests - find out more at http://uppercut.pbwiki.com -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="mbunit2.test" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value="..\.." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\analyzers" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.app.drop" value="${project.name}" overwrite="false" />
- <property name="dirs.build.code" value="${dirs.build}\${folder.app.drop}" overwrite="false" />
- <property name="folder.build_artifacts" value="build_artifacts" overwrite="false" />
- <property name="dirs.build_artifacts" value="${path::get-full-path(dirs.build)}\${folder.build_artifacts}" />
- <property name="dirs.test_results" value="${dirs.build_artifacts}\mbunit2" overwrite="false" />
- <property name="file.test_results" value="mbunit-results" overwrite="false" />
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
-
- <assemblyfileset id="assemblies.assemblyfileset.testing" basedir="${dirs.build.code}\" >
- <exclude name="*Database*dll" />
- <exclude name="*.Integration*dll" />
- <exclude name="TestFu.dll" />
- <include name="*Test*dll" />
- <include name="*.Spec*dll" />
- </assemblyfileset>
-
- <assemblyfileset id="assemblies.assemblyfileset.testing.all" basedir="${dirs.build.code}\" >
- <exclude name="TestFu.dll" />
- <include name="*Test*dll" />
- <include name="*.Spec*dll" />
- </assemblyfileset>
-
- <target name="go" depends="run_tasks" />
-
- <target name="run_tasks">
- <echo message="Running ${project::get-name()} tasks." />
- <call target="prepare" if="${target::exists('prepare')}" />
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
- <call target="run_normal_tasks" if="${not file::exists(file.custom.step.replace)}" />
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" />
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
- </target>
-
- <target name="run_normal_tasks"
- depends="run_tests"
- description="Testing with MbUnit v2." />
-
- <target name="custom_tasks_before">
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="false" />
- </target>
-
- <target name="prepare">
- <echo message="Removing and adding ${dirs.test_results}."/>
- <delete dir="${dirs.test_results}" failonerror="false" />
- <mkdir dir="${dirs.test_results}" />
- </target>
-
- <target name="run_tests" depends="prepare" description="Running Unit Tests">
- <echo message="Running tests using MbUnit and putting results in ${dirs.test_results}."/>
- <mbunit
- report-types="Html;Xml;Text"
- report-filename-format="${file.test_results}"
- report-output-directory="${dirs.test_results}"
- halt-on-failure="true"
- failonerror="true"
- >
- <assemblies refid="assemblies.assemblyfileset.testing" />
- <categories>
- <exclude name="Database" />
- <exclude name="Integration" />
- <exclude name="Slow" />
- <exclude name="NotWorking" />
- <exclude name="Ignore" />
- <exclude name="database" />
- <exclude name="integration" />
- <exclude name="slow" />
- <exclude name="notworking" />
- <exclude name="ignore" />
- </categories>
- </mbunit>
- </target>
-
- <target name="run_all_tests" depends="prepare" description="Running All Unit Tests">
- <echo message="Running all tests (including integration tests) using MbUnit and putting results in ${dirs.test_results}."/>
- <mbunit
- report-types="Html;Xml;Text"
- report-filename-format="${file.test_results}"
- report-output-directory="${dirs.test_results}"
- halt-on-failure="true"
- failonerror="true"
- >
- <assemblies refid="assemblies.assemblyfileset.testing.all" />
- </mbunit>
- </target>
-
- <target name="open_results">
- <echo message="Opening results at ${path::get-full-path(dirs.test_results)}\${file.test_results}.html."/>
- <exec
- spawn="true"
- program="${environment::get-folder-path('ProgramFiles')}\Internet Explorer\iexplore.exe"
- commandline="${path::get-full-path(dirs.test_results)}\${file.test_results}.html"
- >
- </exec>
- </target>
-
- <target name="custom_tasks_after">
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="false" />
- </target>
-
-</project>
View
116 build/analyzers/moma.step
@@ -1,116 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="Mono Migration Analyzer" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <!-- DO NOT EDIT THIS FILE - Mono Migration Analyzer - find out more at http://uppercut.pbwiki.com -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="moma" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value="..\.." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\analyzers" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.app.drop" value="${project.name}" overwrite="false" />
- <property name="dirs.build.code" value="${dirs.build}\${folder.app.drop}" overwrite="false" />
- <property name="folder.build_artifacts" value="build_artifacts" overwrite="false" />
- <property name="dirs.build_artifacts" value="${path::get-full-path(dirs.build)}\${folder.build_artifacts}" />
- <property name="project.name" value="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__" overwrite="false" />
- <property name="folder.references" value="lib" overwrite="false" />
- <property name="dirs.lib" value="${dirs.current}\${path.to.toplevel}\${folder.references}" overwrite="false" />
- <property name="dirs.moma_results" value="${path::get-full-path(dirs.build_artifacts)}\monoMigrationAnalyzer" />
- <property name="app.moma" value="${path::get-full-path(dirs.lib)}\MoMA\MoMA.exe" overwrite="false" />
- <property name="file.moma_results" value="${project.name}.MoMAReport.html" />
- <property name="file.moma.submit_results" value="${project.name}.MoMAReport.xml" />
- <property name="file.moma_log" value="${project.name}.moma.log" />
- <property name="args.moma" value="--nogui --out ${dirs.moma_results}\${file.moma_results}" />
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
-
- <target name="go" depends="run_tasks" if="${file::exists(app.moma)}" />
-
- <target name="run_tasks">
- <echo message="Running ${project::get-name()} tasks." />
- <call target="prepare" if="${target::exists('prepare')}" />
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
- <call target="run_normal_tasks" if="${not file::exists(file.custom.step.replace)}" />
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" />
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
- </target>
-
- <target name="custom_tasks_before">
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="false" />
- </target>
-
- <target name="prepare">
- <echo message="Removing and adding ${dirs.moma_results}."/>
- <delete dir="${dirs.moma_results}" failonerror="false" />
- <mkdir dir="${dirs.moma_results}" />
- </target>
-
- <target name="run_normal_tasks"
- depends="get_regular_dlls, moma"
- description="Using Mono Migration Analyzer to Analyze project for ability to run cross platform."
- if="${file::exists(app.moma)}" />
-
- <target name="get_regular_dlls">
- <echo message="Getting output dlls based on name in directory ${path::get-full-path(dirs.build.code)}." />
- <property name="dll.names" value="" />
- <foreach item="File" property="dll.filename">
- <in>
- <items>
- <exclude name="${dirs.build.code}\NUnit*.dll" />
- <exclude name="${dirs.build.code}\MbUnit*.dll" />
- <exclude name="${dirs.build.code}\TestFu.dll" />
- <exclude name="${dirs.build.code}\QuickGraph*.dll" />
- <exclude name="${dirs.build.code}\Refly*.dll" />
- <exclude name="${dirs.build.code}\Rhino.Mocks*.dll" />
- <exclude name="${dirs.build.code}\*bdd*.dll" />
- <exclude name="${dirs.build.code}\*Test*dll" />
- <exclude name="${dirs.build.code}\*Spec*dll" />
- <include name="${dirs.build.code}\*.dll" />
- <include name="${dirs.build.code}\*.exe" />
- </items>
- </in>
- <do>
- <property name="dll.names" value="${dll.names + ' ' + path::get-file-name(dll.filename)}" />
- </do>
- </foreach>
-
- <property name="dlls.regular" value="${dll.names}" />
- <echo message="Running Mono Migration Analyzer against these files - ${dlls.regular}." />
-
- <property name="args.moma" value="${args.moma} ${dlls.regular}" />
- </target>
-
- <target name="moma" if="${file::exists(app.moma)}" >
- <echo message="Attempting to run Mono Migration Analyzer. Creating file at ${file.moma_results} and logging at ${file.moma_log}." />
-
- <exec program="${app.moma}"
- workingdir="${dirs.build.code}"
- >
- <arg line="${args.moma}" />
- </exec>
-
- </target>
-
- <target name="open_results">
- <echo message="Opening results at ${path::get-full-path(dirs.moma_results)}\${file.moma_results}."/>
- <exec
- spawn="true"
- program="${environment::get-folder-path('ProgramFiles')}\Internet Explorer\iexplore.exe"
- commandline="${path::get-full-path(dirs.moma_results)}\${file.moma_results}"
- >
- </exec>
- </target>
-
- <target name="custom_tasks_after">
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="false" />
- </target>
-
-</project>
View
158 build/analyzers/ncover.step
@@ -1,158 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="NCover" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <!-- DO NOT EDIT THIS FILE - NCover uses MbUnit to run tests - find out more at http://uppercut.pbwiki.com -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="ncover" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value="..\.." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\analyzers" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.app.drop" value="${project.name}" overwrite="false" />
- <property name="dirs.build.code" value="${dirs.build}\${folder.app.drop}" overwrite="false" />
- <property name="folder.build_artifacts" value="build_artifacts" overwrite="false" />
- <property name="dirs.build_artifacts" value="${path::get-full-path(dirs.build)}\${folder.build_artifacts}" />
- <property name="project.name" value="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__" overwrite="false" />
- <property name="test.framework" value="mbunit" overwrite="false" />
- <property name="number.satisfactory_coverage" value="85" overwrite="false" />
- <property name="fail.if_ncover_fails" value="false" overwrite="false" />
- <property name="folder.references" value="lib" overwrite="false" />
- <property name="dirs.lib" value="${dirs.current}\${path.to.toplevel}\${folder.references}" overwrite="false" />
- <property name="dirs.ncover_results" value="${path::get-full-path(dirs.build_artifacts)}\ncover" />
- <property name="app.ncover.tester" value="${path::get-full-path(dirs.lib)}\MbUnit2\MbUnit.Cons.exe" overwrite="false" />
- <property name="app.ncover" value="${path::get-full-path(dirs.lib)}\NCover\NCover.Console.exe" overwrite="false" />
- <property name="app.ncover.explorer" value="${path::get-full-path(dirs.lib)}\NCover\NCoverExplorer.Console.exe" overwrite="false" />
- <property name="file.ncover_results" value="${dirs.ncover_results}\${project.name}.ncover.xml" />
- <property name="file.ncover_log" value="${dirs.ncover_results}\${project.name}.ncover.log" />
- <property name="file.xml.code_coverage_results" value="${project.name}.CodeCoverageSummary-results.xml" />
- <property name="file.html.code_coverage_results" value="${project.name}.CodeCoverageSummary-results.html" />
- <property name="tests.excluded_categories.comma_separated" value="Database,Integration,Slow,NotWorking" overwrite="false" />
- <property name="test.args" value="" />
- <property name="test.args" value="/rt:Text /rnf:mbUnit /rf:${dirs.ncover_results} /ec:${tests.excluded_categories.comma_separated}" if="${test.framework=='mbunit2'}" />
- <property name="test.args" value="/xml:${dirs.ncover_results}\nunit-results.xml /nologo /exclude:${tests.excluded_categories.comma_separated}" if="${test.framework=='nunit'}" />
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
-
- <target name="go" depends="run_tasks" if="${file::exists(app.ncover)}" />
-
- <target name="run_tasks">
- <echo message="Running ${project::get-name()} tasks." />
- <call target="prepare" if="${target::exists('prepare')}" />
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
- <call target="run_normal_tasks" if="${not file::exists(file.custom.step.replace)}" />
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" />
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
- </target>
-
- <target name="run_normal_tasks"
- depends="get_test_dlls, ncover, ncover_explorer"
- description="Using NCover to Analyze project for test quality indicators."
- if="${file::exists(app.ncover)}" />
-
- <target name="custom_tasks_before">
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="false" />
- </target>
-
- <target name="prepare">
- <echo message="Removing and adding ${dirs.ncover_results}."/>
- <delete dir="${dirs.ncover_results}" failonerror="false" />
- <mkdir dir="${dirs.ncover_results}" />
- </target>
-
- <target name="get_test_dlls">
- <echo message="Getting test dlls based on name in directory ${path::get-full-path(dirs.build.code)}." />
- <property name="dll.names" value="" />
- <foreach item="File" property="dll.filename">
- <in>
- <items>
- <exclude name="${dirs.build.code}\*Database*dll" />
- <exclude name="${dirs.build.code}\*.Integration*dll" />
- <exclude name="${dirs.build.code}\TestFu.dll" />
- <include name="${dirs.build.code}\*Test*dll" />
- <include name="${dirs.build.code}\*Spec*dll" />
- </items>
- </in>
- <do>
- <property name="dll.names" value="${dll.names + ' ' + path::get-file-name(dll.filename)}" />
- </do>
- </foreach>
-
- <property name="dlls.test" value="${dll.names}" />
- <echo message="Running NCover against these test dlls - ${dlls.test}." />
-
- <property name="args.test_runner" value="${dlls.test} ${test.args}" />
- </target>
-
- <target name="ncover" if="${file::exists(app.ncover) and file::exists(app.ncover.tester)}" >
- <echo message="Attempting to run NCover. Creating file at ${file.ncover_results} and logging at ${file.ncover_log}." />
- <ncover program="${app.ncover}"
- commandLineExe="${app.ncover.tester}"
- commandLineArgs="${args.test_runner}"
- workingDirectory="${dirs.build.code}"
- coverageFile="${file.ncover_results}"
- logLevel="Normal"
- logFile="${file.ncover_log}"
- excludeAttributes="CoverageExcludeAttribute"
- failonerror="false"
- verbose="true">
- <assemblies basedir="${dirs.build.code}">
- <exclude name="${dirs.build.code}\TestFu.dll" />
- <exclude name="${dirs.build.code}\*Test*dll" />
- <exclude name="${dirs.build.code}\*Spec*dll" />
- <include name="${dirs.build.code}\${project.name}*.dll" />
- </assemblies>
- </ncover>
- </target>
-
- <target name="ncover_explorer" depends="ncover" if="${file::exists(app.ncover.explorer)}" >
- <echo message="Attempting to run NCoverExplorer. Creating HTML results file at ${file.html.code_coverage_results} and XML results file at ${file.xml.code_coverage_results}." />
- <ncoverexplorer
- program="${app.ncover.explorer}"
- projectName="${project.name}"
- reportType="4"
- outputDir="${dirs.ncover_results}"
- xmlReportName="${file.xml.code_coverage_results}"
- htmlReportName="${file.html.code_coverage_results}"
- showExcluded="True"
- satisfactoryCoverage="${number.satisfactory_coverage}"
- failMinimum="false"
- failonerror="false"
- >
- <fileset>
- <include name="${file.ncover_results}" />
- </fileset>
- <exclusions>
- <exclusion enabled="true" isRegex="false" pattern="*Test*" type="Assembly" />
- <exclusion enabled="true" isRegex="false" pattern="*Spec*" type="Assembly" />
- <exclusion enabled="true" isRegex="false" pattern="*Test*" type="Namespace" />
- <exclusion enabled="true" isRegex="false" pattern="*.My*" type="Namespace" />
- <exclusion enabled="true" isRegex="false" pattern="*.bdd*" type="Namespace" />
- <exclusion enabled="true" isRegex="false" pattern="when*" type="Class" />
- <exclusion enabled="true" isRegex="false" pattern="concern*" type="Class" />
- </exclusions>
- </ncoverexplorer>
- </target>
-
- <target name="open_results">
- <echo message="Opening results at ${path::get-full-path(dirs.ncover_results)}\${file.html.code_coverage_results}."/>
- <exec
- spawn="true"
- program="${environment::get-folder-path('ProgramFiles')}\Internet Explorer\iexplore.exe"
- commandline="${path::get-full-path(dirs.ncover_results)}\${file.html.code_coverage_results}"
- >
- </exec>
- </target>
-
- <target name="custom_tasks_after">
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="false" />
- </target>
-
-</project>
View
68 build/analyzers/ndepend.step
@@ -1,68 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="NDepend" default="go" xmlns="http://nant.sf.net/schemas/nant.xsd">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom\Analyzers folder with file by the same name - find out more at http://uppercut.pbwiki.com -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="ndepend" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value="..\.." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\analyzers" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.app.drop" value="${project.name}" overwrite="false" />
- <property name="dirs.build.code" value="${dirs.build}\${folder.app.drop}" overwrite="false" />
- <property name="folder.build_artifacts" value="build_artifacts" overwrite="false" />
- <property name="dirs.build_artifacts" value="${path::get-full-path(dirs.build)}\${folder.build_artifacts}" />
- <property name="app.ndepend" value="C:\Program Files\NDepend\NDepend.Console.exe" overwrite="false" />
- <property name="dirs.ndepend_results" value="${dirs.build_artifacts}\ndepend" />
- <property name="files.ndepend_config" value="${path::get-full-path(dirs.current)}\${path.to.toplevel}\NDepend.xml" />
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
-
- <target name="go" depends="run_tasks" if="${file::exists(app.ndepend)}" />
-
- <target name="run_tasks">
- <echo message="Running ${project::get-name()} tasks." />
- <call target="prepare" if="${target::exists('prepare')}" />
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
- <call target="run_normal_tasks" if="${not file::exists(file.custom.step.replace)}" />
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" />
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
- </target>
-
- <target name="run_normal_tasks"
- depends="ndepend"
- description="Using NDepend to Analyze project for quality indicators."
- if="${file::exists(app.ndepend)}" />
-
- <target name="prepare">
- <echo message="Removing and adding ${dirs.ndepend_results}."/>
- <delete dir="${dirs.ndepend_results}" failonerror="false" />
- <mkdir dir="${dirs.ndepend_results}" />
- </target>
-
- <target name="custom_tasks_before">
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="false" />
- </target>
-
- <target name="ndepend" depends="prepare" if="${file::exists(app.ndepend)}">
- <echo message="Attempting to run NDepend at ${app.ndepend} for file ${files.ndepend_config}." />
-
- <exec program="${app.ndepend}">
- <arg line="${files.ndepend_config} /OutDir ${dirs.ndepend_results} /InDirs ${path::get-full-path(dirs.build.code)} C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 C:\WINDOWS\Microsoft.NET\Framework\v3.0 C:\WINDOWS\Microsoft.NET\Framework\v3.5" />
- <!-- /EmitVisualNDependBinXml -->
- </exec>
- </target>
-
- <target name="custom_tasks_after">
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="false" />
- </target>
-
-</project>
View
135 build/analyzers/nunit.test.step
@@ -1,135 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="NUnitTester" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <!-- DO NOT EDIT THIS FILE - This follows a convention for testing with Integration tests being separated from Unit tests - find out more at http://uppercut.pbwiki.com -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="nunit.test" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value="..\.." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\analyzers" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.app.drop" value="${project.name}" overwrite="false" />
- <property name="dirs.build.code" value="${dirs.build}\${folder.app.drop}" overwrite="false" />
- <property name="folder.build_artifacts" value="build_artifacts" overwrite="false" />
- <property name="dirs.build_artifacts" value="${path::get-full-path(dirs.build)}\${folder.build_artifacts}" />
- <property name="dirs.test_results" value="${dirs.build_artifacts}\nunit" overwrite="false" />
- <property name="file.test_results" value="index" overwrite="false" />
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
-
- <assemblyfileset id="assemblies.assemblyfileset.testing" basedir="${dirs.build.code}\" >
- <exclude name="*Database*dll" />
- <exclude name="*.Integration*dll" />
- <exclude name="TestFu.dll" />
- <include name="*Test*dll" />
- <include name="*.Spec*dll" />
- </assemblyfileset>
-
- <assemblyfileset id="assemblies.assemblyfileset.testing.all" basedir="${dirs.build.code}\" >
- <exclude name="TestFu.dll" />
- <include name="*Test*dll" />
- <include name="*.Spec*dll" />
- </assemblyfileset>
-
- <target name="go" depends="run_tasks" />
-
- <target name="run_tasks">
- <echo message="Running ${project::get-name()} tasks." />
- <call target="prepare" if="${target::exists('prepare')}" />
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
- <call target="run_normal_tasks" if="${not file::exists(file.custom.step.replace)}" />
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" />
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
- </target>
-
- <target name="run_normal_tasks"
- depends="set_nunit_failure_mode, run_tests, generate_report"
- description="Testing with NUnit." />
-
- <target name="custom_tasks_before">
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="false" />
- </target>
-
- <target name="prepare">
- <echo message="Removing and adding ${dirs.test_results}."/>
- <delete dir="${dirs.test_results}" failonerror="false" />
- <mkdir dir="${dirs.test_results}" />
- </target>
-
- <target name="set_nunit_failure_mode">
- <property name="nant.onfailure" value="generate_report" />
- </target>
-
- <target name="run_tests" depends="prepare" description="Running Unit Tests">
- <echo message="Running tests using NUnit and putting results in ${dirs.test_results}."/>
- <nunit2
- haltonfailure="false"
- failonerror="true"
- >
- <formatter type="Xml" usefile="true" extension=".xml" outputdir="${dirs.test_results}" />
- <formatter type="Plain" usefile="true" extension=".txt" outputdir="${dirs.test_results}" />
- <test>
- <assemblies refid="assemblies.assemblyfileset.testing" />
- <categories>
- <exclude name="Database" />
- <exclude name="Integration" />
- <exclude name="Slow" />
- <exclude name="NotWorking" />
- <exclude name="Ignore" />
- <exclude name="database" />
- <exclude name="integration" />
- <exclude name="slow" />
- <exclude name="notworking" />
- <exclude name="ignore" />
- </categories>
- </test>
- </nunit2>
- </target>
-
- <target name="run_all_tests" depends="prepare, set_nunit_failure_mode, run_all_nunit_tests, generate_report" description="Like go but runs all tests" />
-
- <target name="run_all_nunit_tests" depends="prepare, set_nunit_failure_mode" description="Running All Unit Tests">
- <echo message="Running all tests (including integration tests) using NUnit and putting results in ${dirs.test_results}."/>
- <nunit2
- haltonfailure="false"
- failonerror="true"
- >
- <formatter type="Xml" usefile="true" extension=".xml" outputdir="${dirs.test_results}" />
- <formatter type="Plain" usefile="true" extension=".txt" outputdir="${dirs.test_results}" />
- <test>
- <assemblies refid="assemblies.assemblyfileset.testing.all" />
- </test>
- </nunit2>
- </target>
-
- <target name="generate_report">
- <nunit2report todir="${dirs.test_results}" failonerror="false" >
- <fileset>
- <include name="${dirs.test_results}\*-results.xml"/>
- </fileset>
- </nunit2report>
- </target>
-
- <target name="open_results">
- <echo message="Opening results at ${path::get-full-path(dirs.test_results)}\${file.test_results}.html."/>
- <exec
- spawn="true"
- program="${environment::get-folder-path('ProgramFiles')}\Internet Explorer\iexplore.exe"
- commandline="${path::get-full-path(dirs.test_results)}\${file.test_results}.html"
- >
- </exec>
- </target>
-
- <target name="custom_tasks_after">
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="false" />
- </target>
-
-</project>
View
72 build/analyzers/test.step
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="TestRunner" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <!-- DO NOT EDIT THIS FILE - This follows a convention for testing with Integration tests being separated from Unit tests - find out more at http://uppercut.pbwiki.com -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="test" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value="..\.." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\analyzers" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.app.drop" value="${project.name}" overwrite="false" />
- <property name="dirs.build.code" value="${dirs.build}\${folder.app.drop}" overwrite="false" />
- <property name="test.framework" value="mbunit" overwrite="false" />
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
-
- <target name="go" depends="run_tasks" />
-
- <target name="run_tasks">
- <echo message="Running ${project::get-name()} tasks." />
- <call target="prepare" if="${target::exists('prepare')}" />
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
- <call target="run_normal_tasks" if="${not file::exists(file.custom.step.replace)}" />
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" />
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
- </target>
-
- <target name="run_normal_tasks"
- depends="run_tests"
- description="Testing project for quality." />
-
- <target name="custom_tasks_before">
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="false" />
- </target>
-
- <target name="run_tests">
- <nant buildfile="${dirs.current}\mbunit2.test.step" inheritall="true" if="${test.framework=='mbunit2'}" />
- <nant buildfile="${dirs.current}\gallio.test.step" inheritall="true" if="${test.framework=='gallio'}" />
- <nant buildfile="${dirs.current}\nunit.test.step" inheritall="true" if="${test.framework=='nunit'}" />
- <call target="set_normal_failure_mode" />
- </target>
-
- <target name="all">
- <nant buildfile="${dirs.current}\mbunit2.test.step" target="run_all_tests" inheritall="true" if="${test.framework=='mbunit2'}" />
- <nant buildfile="${dirs.current}\gallio.test.step" target="run_all_tests" inheritall="true" if="${test.framework=='gallio'}" />
- <nant buildfile="${dirs.current}\nunit.test.step" target="run_all_tests" inheritall="true" if="${test.framework=='nunit'}" />
- <call target="set_normal_failure_mode" />
- </target>
-
- <target name="open_results">
- <nant buildfile="${dirs.current}\mbunit2.test.step" target="open_results" inheritall="true" if="${test.framework=='mbunit2'}" />
- <nant buildfile="${dirs.current}\gallio.test.step" target="open_results" inheritall="true" if="${test.framework=='gallio'}" />
- <nant buildfile="${dirs.current}\nunit.test.step" target="open_results" inheritall="true" if="${test.framework=='nunit'}" />
- </target>
-
- <target name="set_normal_failure_mode">
- <property name="nant.onfailure" value="fail" />
- </target>
-
- <target name="custom_tasks_after">
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="false" />
- </target>
-
-</project>
View
99 build/compile.step
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="Compiler" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom folder with file by the same name - find out more at http://uppercut.pbwiki.com -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="compile" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value=".." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.documentation" value="docs" overwrite="false" />
- <property name="dirs.docs" value="${dirs.current}\${path.to.toplevel}\${folder.documentation}" />
- <property name="folder.database" value="__DATABASE_FOLDER_NAME__" overwrite="false" />
- <property name="dirs.db" value="${dirs.current}\${path.to.toplevel}\${folder.database}" />
- <property name="project.name" value="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__" overwrite="false" />
- <property name="folder.app.drop" value="${project.name}" overwrite="false" />
- <property name="path_to_solution" value="." overwrite="false" />
- <property name="microsoft.framework" value="net-3.5" overwrite="false" />
- <property name="msbuild.configuration" value="Release" overwrite="false" />
- <property name="msbuild.platform" value="Any CPU" overwrite="false" />
- <property name="solution.path" value="${dirs.current}\${path.to.toplevel}\${path_to_solution}\${project.name}.sln" />
- <property name="solution.path" value="${dirs.current}\${path.to.toplevel}\${path_to_solution}\${project.name}.vbp" if="${microsoft.framework =='vb6'}" />
- <property name="nant.settings.currentframework" value="${microsoft.framework}" if="${microsoft.framework !='vb6'}" />
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
-
- <target name="go" depends="run_tasks" />
-
- <target name="run_tasks">
- <echo message="Running ${project::get-name()} tasks." />
- <call target="prepare" if="${target::exists('prepare')}" />
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
- <call target="run_normal_tasks" if="${not file::exists(file.custom.step.replace)}" />
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" />
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
- </target>
-
- <target name="run_normal_tasks"
- depends="error_check,build_code, copy_documentation, copy_db"
- description="Compiling project." />
-
- <target name="custom_tasks_before">
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="false" />
- </target>
-
- <target name="error_check">
- <fail message="You must fill out the project.name, repository.path, and company.name settings in the settings\UppercuT.config file. Please do that and retry the build."
- if="${project.name=='__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__'}" />
- </target>
-
- <target name="build_code" depends="" description="Building Library">
- <echo message="Compiling ${solution.path}."/>
- <call target="build_dotNET_code" if="${microsoft.framework !='vb6'}" />
- <call target="build_vb6_code" if="${microsoft.framework =='vb6'}" />
- </target>
-
- <target name="build_dotNET_code" >
- <msbuild project="${solution.path}" verbosity="quiet">
- <property name="Configuration" value="${msbuild.configuration}" />
- <property name="OutputPath" value="${dirs.build}\${folder.app.drop}" />
- <property name="Platform" value="${msbuild.platform}" />
- </msbuild>
- </target>
-
- <target name="build_vb6_code">
- <vb6 project="${solution.path}" outdir="${dirs.build}\${folder.app.drop}" />
- </target>
-
- <target name="copy_documentation">
- <echo message="Building documentation files to ${dirs.build}\${folder.documentation}."/>
- <copy todir="${dirs.build}\${folder.documentation}">
- <fileset basedir="${dirs.docs}">
- <include name="**/*.*" />
- </fileset>
- </copy>
- </target>
-
- <target name="copy_db">
- <echo message="Building database files to ${dirs.build}\${folder.database}."/>
- <copy todir="${dirs.build}\${folder.database}">
- <fileset basedir="${dirs.db}">
- <include name="**/*.*" />
- </fileset>
- </copy>
- </target>
-
- <target name="custom_tasks_after">
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="false" />
- </target>
-
-</project>
View
41 build/customize.bat
@@ -1,41 +0,0 @@
-@echo off
-
-::Project UppercuT - http://uppercut.googlecode.com
-::No edits to this file are required - http://uppercut.pbwiki.com
-
-if '%1' == '' goto usage
-if '%2' == '' goto usage
-if '%3' NEQ '' goto usage
-if '%1' == '/?' goto usage
-if '%1' == '-?' goto usage
-if '%1' == '?' goto usage
-if '%1' == '/help' goto usage
-
-SET step.name=%1
-SET step.type=%2
-
-
-SET DIR=%~d0%~p0%
-SET NANT="%DIR%..\lib\Nant\nant.exe"
-SET build.config.settings="%DIR%..\settings\UppercuT.config"
-
-%NANT% /f:.\customize.build -D:build.config.settings=%build.config.settings% -D:customize.step.name=%step.name% -D:customize.step.type=%step.type%
-
-if %ERRORLEVEL% NEQ 0 goto errors
-
-goto finish
-
-:usage
-echo.
-echo Usage: customize.bat stepName customizeType
-echo stepName is the name of the item
-echo customizeType is "pre" "post" or "replace"
-echo .
-echo Example: customize package.step post
-echo.
-goto finish
-
-:errors
-EXIT /B %ERRORLEVEL%
-
-:finish
View
76 build/customize.build
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="Customize UppercuT" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom folder with file by the same name - find out more at http://uppercut.pbwiki.com -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="customize" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value=".." />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}" />
- <property name="customize.step.name" value="__REPLACE__" overwrite="false" />
- <property name="customize.step.type" value="__REPLACE__" overwrite="false" />
- <property name="customize.step.type.lowered" value="${string::to-lower(customize.step.type)}" />
- <property name="file.customize.template" value="item.template" />
- <property name="file.customized" value="" readonly="false" />
- <property name="path.to.custom_file" value="-1" />
- <property name="path.to.custom_file" value="" if="${file::exists(customize.step.name)}" />
-
- <target name="go" depends="run_tasks, report_finish_time" />
-
- <target name="run_tasks">
- <echo message="Running ${project::get-name()} to create custom tasks." />
- <call target="prepare" if="${target::exists('prepare')}" />
- <call target="run_normal_tasks" />
- </target>
-
- <target name="run_normal_tasks"
- depends="error_check, customize"
- description="Setting up a customize file for UppercuT." />
-
- <target name="error_check">
- <echo message="Error checking - the input for customize.step.name is '${customize.step.name}' and the input for customize.step.type is '${customize.step.type}'." />
- <fail message="Please send in the arguments for what step to customize and what type of customization. Call customize.bat /? for usage instructions."
- if="${customize.step.name=='__REPLACE__' or customize.step.type =='__REPLACE__'}" />
- <fail message="The type of customization can only be pre, post, or replace."
- unless="${customize.step.type.lowered =='pre' or customize.step.type.lowered =='post' or customize.step.type.lowered =='replace'}" />
- </target>
-
- <target name="customize">
- <property name="file.customized" value="${path::get-file-name-without-extension(customize.step.name)}.${customize.step.type.lowered}${path::get-extension(customize.step.name)}" />
- <echo message="Creating a customized step called ${file.customized}." />
- <call target="resolve_path_to_custom_file" />
- <fail message="${file.customized} already exists in ${dirs.build_scripts_custom}. Will not run." if="${file::exists(dirs.build_scripts_custom + '\' + file.customized)}" />
- <call target="create_file_if_not_already_existing" />
- <call target="replace_template_values" />
- </target>
-
- <target name="resolve_path_to_custom_file">
- <property name="path.to.custom_file" value="\analyzers" if="${file::exists('analyzers\' + customize.step.name)}" />
- <property name="path.to.custom_file" value="\versioners" if="${file::exists('versioners\' + customize.step.name)}" />
- <fail message="${customize.step.name} does not exist in anywhere in the build directory." if="${path.to.custom_file=='-1'}" />
- <property name="dirs.build_scripts_custom" value="${dirs.build_scripts_custom}${path.to.custom_file}" />
- <echo message="Found ${customize.step.name} in '${dirs.current}\${path.to.custom_file}'. This means the custom path is going to be ${dirs.build_scripts_custom}." />
- </target>
-
- <target name="create_file_if_not_already_existing">
- <copy file="customizers\${file.customize.template}" tofile="${dirs.build_scripts_custom}\${file.customized}" if="${not file::exists(dirs.build_scripts_custom + '\' + file.customized)}" />
- </target>
-
- <target name="replace_template_values">
- <xmlpoke
- file="${dirs.build_scripts_custom}\${file.customized}"
- xpath="/project/@name"
- value="CUSTOM ${string::to-upper(customize.step.type)} ${string::to-upper(path::get-file-name-without-extension(customize.step.name))}" />
- <xmlpoke
- file="${dirs.build_scripts_custom}\${file.customized}"
- xpath="/project/property[@name = 'path.to.toplevel']/@value"
- value="..\.." if="${path.to.custom_file !=''}" />
- </target>
-
- <target name="report_finish_time">
- <echo message="Customize finished at ${datetime::now()}. Please make any customizations you need to now to ${dirs.build_scripts_custom}\${file.customized} and don't forget to add it to source control." />
- </target>
-
-</project>
View
50 build/customizers/item.template
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="__REPLACE__" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value=".." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="dirs.build_scripts" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts}" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.code_drop" value="code_drop" overwrite="false" />
- <property name="dirs.drop" value="${dirs.current}\${path.to.toplevel}\${folder.code_drop}" overwrite="false" />
- <property name="folder.app.drop" value="${project.name}" overwrite="false" />
- <property name="folder.database" value="__DATABASE_FOLDER_NAME__" overwrite="false" />
- <property name="dirs.database" value="${dirs.current}\${path.to.toplevel}\${folder.database}" overwrite="false" />
- <property name="folder.reports" value="${project.name}.Reports" overwrite="false" />
- <property name="dirs.reports" value="${dirs.current}\${path.to.toplevel}\${folder.reports}" overwrite="false" />
- <property name="folder.file_server" value="file.server" overwrite="false" />
- <property name="dirs.file_server" value="${dirs.current}\${path.to.toplevel}\${folder.file_server}" overwrite="false" />
- <property name="folder.environment_files" value="environment.files" overwrite="false" />
- <property name="dirs.environment_files" value="${dirs.current}\${path.to.toplevel}\${folder.environment_files}" overwrite="false" />
- <property name="folder.deployment" value="deployment" overwrite="false" />
- <property name="dirs.deployment" value="${dirs.current}\${path.to.toplevel}\${folder.deployment}" overwrite="false" />
- <property name="folder.settings" value="settings" overwrite="false" />
- <property name="dirs.settings" value="${dirs.current}\${path.to.toplevel}\${folder.settings}" overwrite="false" />
- <property name="folder.documentation" value="docs" overwrite="false" />
- <property name="dirs.docs" value="${dirs.current}\${path.to.toplevel}\${folder.documentation}" overwrite="false" />
- <property name="folder.references" value="lib" overwrite="false" />
- <property name="dirs.lib" value="${dirs.current}\${path.to.toplevel}\${folder.references}" overwrite="false" />
-
- <target name="go" depends="run_tasks" />
-
- <target name="run_tasks">
- <!-- INSERT YOUR TASKS HERE OR CALL OUT TO OTHER TASKS -->
- <!-- Sample provided below that you can customize -->
- </target>
-
- <!--<target name="documentation">
- <echo message="Packaging documentation files to ${dirs.drop}\${folder.documentation}."/>
- <copy todir="${dirs.drop}\${folder.documentation}">
- <fileset basedir="${dirs.build}\${folder.documentation}">
- <include name="**/*.*" />
- </fileset>
- </copy>
- </target>-->
-
-</project>
View
120 build/default.build
@@ -1,120 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="UppercuTBuild" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom folder with file by the same name - find out more at http://uppercut.pbwiki.com -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="default" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value=".." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.code_drop" value="code_drop" overwrite="false" />
- <property name="dirs.drop" value="${dirs.current}\${path.to.toplevel}\${folder.code_drop}" overwrite="false" />
- <property name="project.name" value="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__" overwrite="false" />
- <property name="repository.path" value="__REPOSITORY_PATH__" overwrite="false" />
- <property name="company.name" value="__COMPANY_NAME__" overwrite="false" />
- <property name="source_control_type" value="svn" overwrite="false" />
- <property name="version.uppercut" value="0" />
- <property name="version.revision" value="0" />
- <property name="version.build" value="0" />
- <property name="file.uppercut.assembly" value="uppercut.exe" />
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.build" />
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.build" />
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.build" />
-
- <target name="go" depends="load_uppercut_assemblies, report_uppercut_version, run_tasks, report_finish_time" />
-
- <target name="run_tasks">
- <echo message="Running ${project::get-name()} tasks." />
- <call target="prepare" if="${target::exists('prepare')}" />
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
- <call target="run_normal_tasks" if="${not file::exists(file.custom.step.replace)}" />
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" />
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
- </target>
-
- <target name="run_normal_tasks"
- depends="error_check, build"
- description="Building with UppercuT default.build." />
-
- <target name="custom_tasks_before">
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="false" />
- </target>
-
- <target name="prepare">
- <echo message="Removing and adding ${dirs.build}."/>
- <delete dir="${dirs.build}" failonerror="false" />
- <mkdir dir="${dirs.build}" failonerror="false" />
- </target>
-
- <target name="error_check">
- <fail message="You must fill out the project.name, repository.path, and company.name settings in the settings\UppercuT.config file. Please do that and retry the build."
- if="${project.name=='__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__' or repository.path=='__REPOSITORY_PATH__' or company.name=='__COMPANY_NAME__'}" />
- </target>
-
- <target name="build">
- <call target="get_revision" />
- <call target="get_build_number" />
- <call target="get_drop_directory" />
-
- <nant buildfile="${dirs.current}\policyChecks.step" inheritall="true" />
- <nant buildfile="${dirs.current}\versionBuilder.step" inheritall="true" />
- <nant buildfile="${dirs.current}\generateBuildInfo.step" inheritall="true" />
- <nant buildfile="${dirs.current}\compile.step" inheritall="true" />
- <nant buildfile="${dirs.current}\environmentBuilder.step" inheritall="true" />
- <nant buildfile="${dirs.current}\analyze.step" inheritall="true" />
- <nant buildfile="${dirs.current}\package.step" inheritall="true" />
- </target>
-
- <target name="get_revision">
- <nant buildfile="${dirs.current}\versioners\svn.step" inheritall="true" if="${source_control_type=='svn'}" />
- <nant buildfile="${dirs.current}\versioners\tfs.step" inheritall="true" if="${source_control_type=='tfs'}" />
- <nant buildfile="${dirs.current}\versioners\git.step" inheritall="true" if="${source_control_type=='git'}" />
- <!--<nant buildfile="${dirs.current}\versioners\vault.step" inheritall="true" if="${source_control_type=='vault'}" />-->
- <!--<nant buildfile="${dirs.current}\versioners\vss.step" inheritall="true" if="${source_control_type=='vss'}" />-->
-
- <property name="version.revision" value="${environment::get-variable('uc.app.revision')}" if="${environment::variable-exists('uc.app.revision')}" />
- <echo message="Using revision number: ${version.revision}." />
- </target>
-
- <target name="get_build_number">
- <property name="version.build" value="${environment::get-variable('CCNetNumericLabel')}" if="${environment::variable-exists('CCNetNumericLabel')}" />
- <property name="version.build" value="${environment::get-variable('BUILD_NUMBER')}" if="${environment::variable-exists('BUILD_NUMBER')}" />
- <echo message="Using build number ${version.build}." />
- </target>
-
- <target name="get_drop_directory">
- <property name="dirs.drop" value="${environment::get-variable('CCNetArtifactDirectory')}\b${version.build}-r${version.revision}" if="${environment::variable-exists('CCNetArtifactDirectory')}" />
- <!--Point TeamCity at code_drop for an artifact directory. It will automatically save the files. -->
- <echo message="Compiled code drop directory will be ${path::get-full-path(dirs.drop)}." />
- </target>
-
- <target name="custom_tasks_after">
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="false" />
- </target>
-
- <target name="report_finish_time">
- <echo message="Build finished at ${datetime::now()} with UppercuT version ${version.uppercut}." />
- </target>
-
- <target name="report_uppercut_version">
- <xmlpeek
- file="UppercuT.xml"
- xpath="/uppercut/version"
- property="version.uppercut"
- failonerror="false" />
- <echo message="Using UppercuT version: ${version.uppercut}." />
- </target>
-
- <target name="load_uppercut_assemblies">
- <loadtasks assembly="${file.uppercut.assembly}" if="${file::exists(file.uppercut.assembly)}" />
- </target>
-
-</project>
View
76 build/deploymentBuilder.step
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="DeploymentBuilder" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <!-- DO NOT EDIT THIS FILE - This follows a convention to find configurations, apply environment specifics and save them - find out more at http://uppercut.pbwiki.com -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="deploymentBuilder" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value=".." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.code_drop" value="code_drop" overwrite="false" />
- <property name="dirs.drop" value="${dirs.current}\${path.to.toplevel}\${folder.code_drop}" overwrite="false" />
- <property name="folder.deployment" value="deployment" overwrite="false" />
- <property name="dirs.deployment" value="${dirs.drop}\${folder.deployment}" overwrite="false" />
- <property name="folder.settings" value="settings" overwrite="false" />
- <property name="dirs.deployment.settings" value="${dirs.drop}\${folder.settings}" overwrite="false" />
- <property name="dirs.deployment.templates" value="${dirs.current}\${path.to.toplevel}\${folder.deployment}\templates" overwrite="false" />
- <property name="folder.deployment.settings.templates" value="${dirs.current}\${path.to.toplevel}\${folder.deployment}\Settings" overwrite="false" />
- <property name="dirs.deployment.settings.templates" value="${dirs.drop}\${folder.deployment}\Settings" overwrite="false" />
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
-
- <target name="go" depends="run_tasks" />
-
- <target name="run_tasks">
- <echo message="Running ${project::get-name()} tasks." />
- <call target="prepare" if="${target::exists('prepare')}" />
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
- <call target="run_normal_tasks" if="${not file::exists(file.custom.step.replace)}" />
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" />
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
- </target>
-
- <target name="run_normal_tasks"
- depends="build_deployments, build_deployments_settings"
- description="Deployment File Builder"
- if="${directory::exists(dirs.deployment.templates)}" />
-
- <target name="custom_tasks_before">
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="false" />
- </target>
-
- <target name="build_deployments" if="${directory::exists(dirs.deployment.templates)}" >
- <buildTemplateFiles
- settingsFilesDirectory="${dirs.deployment.settings}"
- templatesDirectory="${dirs.deployment.templates}"
- destinationDirectory="${dirs.deployment}"
- templateExtension=".BAT"
- keepExtension="true"
- useEnvironmentSubdirectory="false"
- />
- </target>
-
- <target name="build_deployments_settings" if="${directory::exists(folder.deployment.settings.templates)}" >
- <buildTemplateFiles
- settingsFilesDirectory="${dirs.deployment.settings}"
- templatesDirectory="${folder.deployment.settings.templates}"
- destinationDirectory="${dirs.deployment.settings.templates}"
- templateExtension=".BAT"
- keepExtension="true"
- />
- </target>
-
- <target name="custom_tasks_after">
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="false" />
- </target>
-
-</project>
View
92 build/environmentBuilder.step
@@ -1,92 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<project name="EnvironmentBuilder" default="go">
- <!-- Project UppercuT - http://projectuppercut.org -->
- <!-- DO NOT EDIT THIS FILE - This follows a convention to find configurations, apply environment specifics and save them - find out more at http://uppercut.pbwiki.com -->
- <property name="build.config.settings" value="__NONE__" overwrite="false" />
- <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
- <property name="file.current.no_extension" value="environmentBuilder" />
- <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
- <property name="path.to.toplevel" value=".." />
- <property name="folder.build_scripts" value="build" overwrite="false" />
- <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
- <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}" />
- <property name="folder.code_build" value="build_output" overwrite="false" />
- <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
- <property name="folder.code_drop" value="code_drop" overwrite="false" />
- <property name="dirs.drop" value="${dirs.current}\${path.to.toplevel}\${folder.code_drop}" overwrite="false" />
- <property name="folder.environment_files" value="environment.files" overwrite="false" />
- <property name="dirs.build.environmentfiles" value="${dirs.build}\${folder.environment_files}" overwrite="false" />
- <property name="folder.settings" value="settings" overwrite="false" />
- <property name="dirs.environments.settings" value="${dirs.current}\${path.to.toplevel}\${folder.settings}" overwrite="false" />
- <property name="folder.app.drop" value="${project.name}" overwrite="false" />
- <property name="folder.database" value="__DATABASE_FOLDER_NAME__" overwrite="false" />
- <property name="folder.documentation" value="docs" overwrite="false" />
- <property name="dirs.build.code" value="${dirs.build}\${folder.app.drop}" overwrite="false" />
- <property name="dirs.build.database" value="${dirs.build}\${folder.database}" overwrite="false" />
- <property name="dirs.build.docs" value="${dirs.build}\${folder.documentation}" overwrite="false" />
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
-
- <target name="go" depends="run_tasks" />
-
- <target name="run_tasks">
- <echo message="Running ${project::get-name()} tasks." />
- <call target="prepare" if="${target::exists('prepare')}" />
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
- <call target="run_normal_tasks" if="${not file::exists(file.custom.step.replace)}" />
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" />
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
- </target>
-
- <target name="run_normal_tasks"
- depends="build_code_environment_files, build_database_environment_files, build_doc_environment_files, build_other_documentation_files"
- description="Building Environment Files." />
-
- <target name="custom_tasks_before">
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="false" />
- </target>
-
- <target name="build_code_environment_files" if="${directory::exists(dirs.environments.settings)}" >
- <buildTemplateFiles
- settingsFilesDirectory="${dirs.environments.settings}"
- templatesDirectory="${dirs.build.code}"
- destinationDirectory="${dirs.build.environmentfiles}"
- useEnvironmentSubdirectory="true"
- />
- </target>
-
- <target name="build_database_environment_files" if="${directory::exists(dirs.environments.settings)}" >
- <buildTemplateFiles
- settingsFilesDirectory="${dirs.environments.settings}"
- templatesDirectory="${dirs.build.database}"
- destinationDirectory="${dirs.build.database}"
- />
- </target>
-
- <target name="build_doc_environment_files" if="${directory::exists(dirs.environments.settings)}" >
- <buildTemplateFiles
- settingsFilesDirectory="${dirs.environments.settings}"
- templatesDirectory="${dirs.build.docs}"
- destinationDirectory="${dirs.build.docs}"
- templateExtension=".xml"
- keepExtension="true"
- />
- </target>
-
- <target name="build_other_documentation_files" if="${directory::exists(dirs.environments.settings)}" >
- <buildTemplateFiles
- settingsFilesDirectory="${dirs.environments.settings}"
- templatesDirectory="${dirs.build.docs}"
- destinationDirectory="${dirs.build.docs}"
- />
- </target>
-
- <target name="custom_tasks_after">
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="false" />
- </target>