Permalink
Browse files

Started customExtensions task to reduce weight of items.

  • Loading branch information...
ferventcoder committed Aug 4, 2011
1 parent 2d733f0 commit 08858ad929b5959d3598b393222df91293283127
Showing with 2,402 additions and 4,998 deletions.
  1. +8 −44 assemblies/build/analyze.step
  2. +13 −49 assemblies/build/analyzers/gallio.test.step
  3. +12 −48 assemblies/build/analyzers/mbunit2.test.step
  4. +12 −48 assemblies/build/analyzers/moma.step
  5. +13 −49 assemblies/build/analyzers/ncover.step
  6. +11 −46 assemblies/build/analyzers/ndepend.step
  7. +12 −48 assemblies/build/analyzers/nitriq.step
  8. +15 −51 assemblies/build/analyzers/nunit.test.step
  9. +15 −51 assemblies/build/analyzers/storevil.test.step
  10. +7 −43 assemblies/build/analyzers/test.step
  11. +12 −48 assemblies/build/analyzers/xunit.test.step
  12. +26 −59 assemblies/build/compile.step
  13. +6 −5 assemblies/build/customize.build
  14. +19 −51 assemblies/build/default.build
  15. +30 −59 assemblies/build/deploymentBuilder.step
  16. +43 −61 assemblies/build/environmentBuilder.step
  17. +8 −44 assemblies/build/gemsBuild.step
  18. +17 −54 assemblies/build/gemsPrepare.step
  19. +9 −45 assemblies/build/generateBuildInfo.step
  20. +11 −47 assemblies/build/ilmerge.build
  21. +9 −42 assemblies/build/nugetBuild.step
  22. +18 −54 assemblies/build/nugetPrepare.step
  23. +9 −45 assemblies/build/obfuscate.step
  24. +9 −45 assemblies/build/open.build
  25. +23 −59 assemblies/build/package.step
  26. +8 −44 assemblies/build/policyChecks.step
  27. +8 −44 assemblies/build/updateAssemblies.build
  28. +9 −44 assemblies/build/versionBuilder.step
  29. +8 −45 assemblies/build/versioners/git.step
  30. +8 −45 assemblies/build/versioners/hg.step
  31. +8 −45 assemblies/build/versioners/svn.step
  32. +7 −43 assemblies/build/versioners/tfs.step
  33. +14 −50 assemblies/build/zip.build
  34. +1 −1 build.bat
  35. +8 −44 build/analyze.step
  36. +13 −49 build/analyzers/gallio.test.step
  37. +12 −48 build/analyzers/mbunit2.test.step
  38. +12 −48 build/analyzers/moma.step
  39. +13 −49 build/analyzers/ncover.step
  40. +11 −46 build/analyzers/ndepend.step
  41. +12 −48 build/analyzers/nitriq.step
  42. +15 −51 build/analyzers/nunit.test.step
  43. +15 −51 build/analyzers/storevil.test.step
  44. +7 −43 build/analyzers/test.step
  45. +12 −48 build/analyzers/xunit.test.step
  46. +26 −59 build/compile.step
  47. +6 −5 build/customize.build
  48. +2 −1 build/customizers/item.template
  49. +19 −51 build/default.build
  50. +30 −59 build/deploymentBuilder.step
  51. +43 −61 build/environmentBuilder.step
  52. +8 −44 build/gemsBuild.step
  53. +17 −54 build/gemsPrepare.step
  54. +9 −45 build/generateBuildInfo.step
  55. +11 −47 build/ilmerge.build
  56. +9 −42 build/nugetBuild.step
  57. +18 −54 build/nugetPrepare.step
  58. +9 −45 build/obfuscate.step
  59. +9 −45 build/open.build
  60. +23 −59 build/package.step
  61. +8 −44 build/policyChecks.step
  62. +8 −44 build/updateAssemblies.build
  63. BIN build/uppercut.dll
  64. BIN build/uppercut.tasks.dll
  65. +9 −44 build/versionBuilder.step
  66. +8 −45 build/versioners/git.step
  67. +8 −45 build/versioners/hg.step
  68. +8 −45 build/versioners/svn.step
  69. +7 −43 build/versioners/tfs.step
  70. +14 −50 build/zip.build
  71. BIN lib/NAnt/MSITaskErrors.mst
  72. BIN lib/NAnt/MSITaskTemplate.msi
  73. BIN lib/NAnt/MSMTaskErrors.mst
  74. BIN lib/NAnt/MSMTaskTemplate.msm
  75. BIN lib/NAnt/NAnt.CompressionTasks.dll
  76. BIN lib/NAnt/NAnt.Contrib.Tasks.dll
  77. BIN lib/NAnt/NAnt.Core.dll
  78. BIN lib/NAnt/NAnt.DotNetTasks.dll
  79. BIN lib/NAnt/NAnt.MSNetTasks.dll
  80. BIN lib/NAnt/NAnt.NUnit.dll
  81. BIN lib/NAnt/NAnt.NUnit1Tasks.dll
  82. BIN lib/NAnt/NAnt.NUnit2Tasks.dll
  83. BIN lib/NAnt/NAnt.SourceControlTasks.dll
  84. BIN lib/NAnt/NAnt.VSNetTasks.dll
  85. BIN lib/NAnt/NAnt.VisualCppTasks.dll
  86. BIN lib/NAnt/NAnt.Win32Tasks.dll
  87. BIN lib/NAnt/NAnt.exe
  88. +333 −136 lib/NAnt/NAnt.exe.config
  89. BIN lib/NAnt/NDepend.Build.NAntTasks.dll
  90. BIN lib/NAnt/NDoc.Documenter.NAnt.dll
  91. BIN lib/NAnt/SLiNgshoT.Core.dll
  92. BIN lib/NAnt/SLiNgshoT.exe
  93. BIN lib/NAnt/ThoughtWorks.CruiseControl.MSBuild.dll
  94. BIN lib/NAnt/extensions/common/2.0/NAnt.MSBuild.dll
  95. +0 −36 lib/NAnt/extensions/common/2.0/NAnt.MSBuild.xml
  96. BIN lib/NAnt/lib/mono/1.0/NDoc.Core.dll
  97. BIN lib/NAnt/lib/mono/1.0/NDoc.Documenter.Msdn.dll
  98. BIN lib/NAnt/lib/mono/1.0/NDoc.ExtendedUI.dll
  99. BIN lib/NAnt/lib/mono/1.0/nunit.core.dll
  100. BIN lib/NAnt/lib/mono/1.0/nunit.framework.dll
  101. BIN lib/NAnt/lib/mono/1.0/nunit.util.dll
  102. BIN lib/NAnt/lib/mono/2.0/NDoc.Core.dll
  103. BIN lib/NAnt/lib/mono/2.0/NDoc.Documenter.Msdn.dll
  104. BIN lib/NAnt/lib/mono/2.0/NDoc.ExtendedUI.dll
  105. BIN lib/NAnt/lib/mono/2.0/nunit.core.dll
  106. BIN lib/NAnt/lib/mono/2.0/nunit.framework.dll
  107. BIN lib/NAnt/lib/mono/2.0/nunit.util.dll
  108. BIN lib/NAnt/lib/net/1.1/NDoc.Core.dll
  109. BIN lib/NAnt/lib/net/1.1/NDoc.Documenter.Msdn.dll
  110. BIN lib/NAnt/lib/net/1.1/NDoc.ExtendedUI.dll
  111. BIN lib/NAnt/lib/net/1.1/nunit.core.dll
  112. BIN lib/NAnt/lib/net/1.1/nunit.framework.dll
  113. BIN lib/NAnt/lib/net/1.1/nunit.util.dll
  114. BIN lib/NAnt/lib/net/2.0/NDoc.Core.dll
  115. BIN lib/NAnt/lib/net/2.0/NDoc.Documenter.Msdn.dll
  116. BIN lib/NAnt/lib/net/2.0/NDoc.ExtendedUI.dll
  117. BIN lib/NAnt/lib/net/2.0/nunit.core.dll
  118. BIN lib/NAnt/lib/net/2.0/nunit.framework.dll
  119. BIN lib/NAnt/lib/net/2.0/nunit.util.dll
  120. BIN lib/NuGet.Core/NuGet.Core.nupkg
  121. BIN lib/NuGet.Core/lib/net40/NuGet.Core.dll
  122. +1 −1 open.bat
  123. +1 −1 product/uppercut.build/build.bat
  124. +8 −44 product/uppercut.build/build/analyze.step
  125. +13 −49 product/uppercut.build/build/analyzers/gallio.test.step
  126. +12 −48 product/uppercut.build/build/analyzers/mbunit2.test.step
  127. +12 −48 product/uppercut.build/build/analyzers/moma.step
  128. +13 −49 product/uppercut.build/build/analyzers/ncover.step
  129. +11 −46 product/uppercut.build/build/analyzers/ndepend.step
  130. +12 −48 product/uppercut.build/build/analyzers/nitriq.step
  131. +15 −51 product/uppercut.build/build/analyzers/nunit.test.step
  132. +15 −51 product/uppercut.build/build/analyzers/storevil.test.step
  133. +7 −43 product/uppercut.build/build/analyzers/test.step
  134. +12 −48 product/uppercut.build/build/analyzers/xunit.test.step
  135. +26 −59 product/uppercut.build/build/compile.step
  136. +6 −5 product/uppercut.build/build/customize.build
  137. +2 −1 product/uppercut.build/build/customizers/item.template
  138. +19 −51 product/uppercut.build/build/default.build
  139. +30 −59 product/uppercut.build/build/deploymentBuilder.step
  140. +43 −61 product/uppercut.build/build/environmentBuilder.step
  141. +8 −44 product/uppercut.build/build/gemsBuild.step
  142. +17 −54 product/uppercut.build/build/gemsPrepare.step
  143. +9 −45 product/uppercut.build/build/generateBuildInfo.step
  144. +11 −47 product/uppercut.build/build/ilmerge.build
  145. +9 −42 product/uppercut.build/build/nugetBuild.step
  146. +18 −54 product/uppercut.build/build/nugetPrepare.step
  147. +9 −45 product/uppercut.build/build/obfuscate.step
  148. +9 −45 product/uppercut.build/build/open.build
  149. +23 −59 product/uppercut.build/build/package.step
  150. +8 −44 product/uppercut.build/build/policyChecks.step
  151. +8 −44 product/uppercut.build/build/updateAssemblies.build
  152. +9 −44 product/uppercut.build/build/versionBuilder.step
  153. +8 −45 product/uppercut.build/build/versioners/git.step
  154. +8 −45 product/uppercut.build/build/versioners/hg.step
  155. +8 −45 product/uppercut.build/build/versioners/svn.step
  156. +7 −43 product/uppercut.build/build/versioners/tfs.step
  157. +14 −50 product/uppercut.build/build/zip.build
  158. +1 −1 product/uppercut.build/open.bat
  159. +2 −2 product/uppercut.build/test.bat
  160. +41 −2 product/uppercut.build/uppercut.build.csproj
  161. +1 −1 product/uppercut.build/zip.bat
  162. +14 −0 product/uppercut.console/Program.cs
  163. +36 −0 product/uppercut.console/Properties/AssemblyInfo.cs
  164. +3 −0 product/uppercut.console/app.config
  165. +108 −0 product/uppercut.console/uppercut.console.csproj
  166. +19 −27 product/uppercut.settings.editor/Properties/Resources.Designer.cs
  167. +10 −14 product/uppercut.settings.editor/Properties/Settings.Designer.cs
  168. +3 −0 product/uppercut.settings.editor/app.config
  169. +43 −2 product/uppercut.settings.editor/uppercut.settings.editor.csproj
  170. +21 −66 product/uppercut.tasks/BuildTemplateFiles.cs
  171. +124 −0 product/uppercut.tasks/CustomExtensionTask.cs
  172. +8 −8 product/uppercut.tasks/GetVersionFromMercurial.cs
  173. +69 −0 product/uppercut.tasks/LogLevel.cs
  174. +42 −0 product/uppercut.tasks/UppercuTTaskBase.cs
  175. +9 −9 product/uppercut.tasks/getVersionFromGit.cs
  176. +44 −2 product/uppercut.tasks/uppercut.tasks.csproj
  177. +41 −2 product/uppercut.tests/uppercut.tests.csproj
  178. +35 −0 product/uppercut/infrastructure/console/CommandRunner.cs
  179. +2 −0 product/uppercut/infrastructure/filesystem/IFileSystemAccess.cs
  180. +9 −0 product/uppercut/infrastructure/filesystem/WindowsFileSystemAccess.cs
  181. +2 −5 product/uppercut/template.builder/TemplateDictionary.cs
  182. +45 −2 product/uppercut/uppercut.csproj
  183. +1 −1 settings/UppercuT.config
  184. +2 −2 test.bat
  185. +15 −9 uppercut.sln
  186. BIN uppercut.sln.docstates
  187. +1 −1 zip.bat
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<project name="Analyzer" default="go">
<project name="Analyzers" 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" />
@@ -11,52 +11,27 @@
<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.separator}${path.to.toplevel}${path.separator}${folder.build_scripts_custom}" />
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
<property name="is.replaced" value="false" />
<property name="fail.build.on.error" value="true" />
<target name="go" depends="run_tasks" />
<target name="run_tasks">
<echo message="Running ${project::get-name()} tasks." />
<echo level="Warning" message="" />
<echo level="Warning" message="====================" />
<echo level="Warning" message="${project::get-name()}" />
<echo level="Warning" message="====================" />
<call target="prepare" if="${target::exists('prepare')}" />
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
<customExtension extends="${project::get-buildfile-path()}" type="pre" failonerror="${fail.build.on.error}" />
<customExtension extends="${project::get-buildfile-path()}" type="replace" failonerror="${fail.build.on.error}" />
<call target="run_normal_tasks" if="${not is.replaced}" />
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
<customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
</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="${fail.build.on.error}" />
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
</exec>
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
</exec>
</target>
<target name="custom_tasks_replace">
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
</exec>
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
</exec>
</target>
<target name="run_analyzers">
<nant buildfile="${dirs.current}${path.separator}analyzers${path.separator}test.step" inheritall="true" />
<nant buildfile="${dirs.current}${path.separator}analyzers${path.separator}ncover.step" inheritall="true" failonerror="false" />
@@ -65,15 +40,4 @@
<nant buildfile="${dirs.current}${path.separator}analyzers${path.separator}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="${fail.build.on.error}" />
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
</exec>
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
</exec>
</target>
</project>
@@ -22,66 +22,41 @@
<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}${path.separator}${file.current.no_extension}.pre.step" />
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
<property name="is.replaced" value="false" />
<property name="fail.build.on.error" value="true" />
<target name="go" depends="run_tasks" />
<target name="run_tasks">
<echo message="Running ${project::get-name()} tasks." />
<target name="run_tasks">
<echo level="Warning" message="" />
<echo level="Warning" message="====================" />
<echo level="Warning" message="${project::get-name()}" />
<echo level="Warning" message="====================" />
<call target="prepare" if="${target::exists('prepare')}" />
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
<customExtension extends="${project::get-buildfile-path()}" type="pre" failonerror="${fail.build.on.error}" />
<customExtension extends="${project::get-buildfile-path()}" type="replace" failonerror="${fail.build.on.error}" />
<call target="run_normal_tasks" if="${not is.replaced}" />
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
<customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
</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="${fail.build.on.error}" />
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
</exec>
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
</exec>
</target>
<target name="custom_tasks_replace">
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
</exec>
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
</exec>
</target>
<target name="prepare">
<echo message="Removing and adding ${dirs.test_results}."/>
<echo level="Warning" 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." />
<echo level="Warning" message="Loading Gallio Nant Tasks from Program Files." />
<loadtasks assembly="C:${path.separator}Program Files (x86)${path.separator}Gallio${path.separator}bin${path.separator}Gallio.NAntTasks.dll" if="${file::exists('C:' + path.separator + 'Program Files (x86)' + path.separator + 'Gallio' + path.separator + 'bin' + path.separator + 'Gallio.NAntTasks.dll')}" />
<loadtasks assembly="C:${path.separator}Program Files${path.separator}Gallio${path.separator}bin${path.separator}Gallio.NAntTasks.dll" if="${file::exists('C:' + path.separator + 'Program Files' + path.separator + 'Gallio' + path.separator + 'bin' + path.separator + '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}."/>
<echo level="Warning" 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}"
@@ -105,7 +80,7 @@
</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}."/>
<echo level="Warning" 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}"
@@ -126,19 +101,8 @@
</target>
<target name="open_results">
<echo message="Opening results - ${path::get-full-path(dirs.test_results) + path.separator + file.test_results + '.html'}" />
<echo level="Warning" message="Opening results - ${path::get-full-path(dirs.test_results) + path.separator + file.test_results + '.html'}" />
<results display="${path::get-full-path(dirs.test_results) + path.separator + file.test_results + '.html'}" />
</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="${fail.build.on.error}" />
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
</exec>
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
</exec>
</target>
</project>
@@ -20,9 +20,6 @@
<property name="dirs.build_artifacts" value="${path::get-full-path(dirs.build)}${path.separator}${folder.build_artifacts}" />
<property name="dirs.test_results" value="${dirs.build_artifacts}${path.separator}mbunit2" overwrite="false" />
<property name="file.test_results" value="mbunit-results" overwrite="false" />
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
<property name="is.replaced" value="false" />
<property name="fail.build.on.error" value="true" />
@@ -44,52 +41,30 @@
<target name="go" depends="run_tasks" />
<target name="run_tasks">
<echo message="Running ${project::get-name()} tasks." />
<target name="run_tasks">
<echo level="Warning" message="" />
<echo level="Warning" message="====================" />
<echo level="Warning" message="${project::get-name()}" />
<echo level="Warning" message="====================" />
<call target="prepare" if="${target::exists('prepare')}" />
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
<customExtension extends="${project::get-buildfile-path()}" type="pre" failonerror="${fail.build.on.error}" />
<customExtension extends="${project::get-buildfile-path()}" type="replace" failonerror="${fail.build.on.error}" />
<call target="run_normal_tasks" if="${not is.replaced}" />
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
<customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
</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="${fail.build.on.error}" />
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
</exec>
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
</exec>
</target>
<target name="custom_tasks_replace">
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
</exec>
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
</exec>
</target>
<target name="prepare">
<echo message="Removing and adding ${dirs.test_results}."/>
<echo level="Warning" 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}."/>
<echo level="Warning" message="Running tests using MbUnit and putting results in ${dirs.test_results}."/>
<mbunit
report-types="Html;Xml;Text"
report-filename-format="${file.test_results}"
@@ -114,7 +89,7 @@
</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}."/>
<echo level="Warning" 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}"
@@ -127,19 +102,8 @@
</target>
<target name="open_results">
<echo message="Opening results - ${path::get-full-path(dirs.test_results) + path.separator + file.test_results + '.html'}" />
<echo level="Warning" message="Opening results - ${path::get-full-path(dirs.test_results) + path.separator + file.test_results + '.html'}" />
<results display="${path::get-full-path(dirs.test_results) + path.separator + file.test_results + '.html'}" />
</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="${fail.build.on.error}" />
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
</exec>
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
</exec>
</target>
</project>
Oops, something went wrong.

0 comments on commit 08858ad

Please sign in to comment.