Permalink
Browse files

Started customExtensions task to reduce weight of items.

  • Loading branch information...
1 parent 2d733f0 commit 08858ad929b5959d3598b393222df91293283127 @ferventcoder ferventcoder committed Aug 4, 2011
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
View
52 assemblies/build/analyze.step
@@ -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>
View
62 assemblies/build/analyzers/gallio.test.step
@@ -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>
View
60 assemblies/build/analyzers/mbunit2.test.step
@@ -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>
View
60 assemblies/build/analyzers/moma.step
@@ -27,50 +27,25 @@
<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 &quot;${dirs.moma_results}${path.separator}${file.moma_results}&quot;" />
- <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="false" />
<target name="go" depends="run_tasks" if="${file::exists(app.moma)}" />
<target name="run_tasks" if="${file::exists(app.moma)}">
- <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')}" />
- </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="${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>
+ <customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
</target>
<target name="prepare">
- <echo message="Removing and adding ${dirs.moma_results}."/>
+ <echo level="Warning" message="Removing and adding ${dirs.moma_results}."/>
<delete dir="${dirs.moma_results}" failonerror="false" />
<mkdir dir="${dirs.moma_results}" />
</target>
@@ -81,7 +56,7 @@
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)}." />
+ <echo level="Warning" 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>
@@ -106,13 +81,13 @@
</foreach>
<property name="dlls.regular" value="${dll.names}" />
- <echo message="Running Mono Migration Analyzer against these files - ${dlls.regular}." />
+ <echo level="Warning" 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}." />
+ <echo level="Warning" 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}"
@@ -123,19 +98,8 @@
</target>
<target name="open_results">
- <echo message="Opening results - ${path::get-full-path(dirs.moma_results) + path.separator + file.moma_results}."/>
+ <echo level="Warning" message="Opening results - ${path::get-full-path(dirs.moma_results) + path.separator + file.moma_results}."/>
<results display="${path::get-full-path(dirs.moma_results) + path.separator + file.moma_results}" />
</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>
View
62 assemblies/build/analyzers/ncover.step
@@ -38,61 +38,36 @@
<property name="test.args" value="/rt:Text /rnf:mbUnit /rf:&quot;${dirs.ncover_results}&quot; /ec:${tests.excluded_categories.comma_separated}" if="${test.framework=='mbunit2'}" />
<property name="test.args" value="/xml:&quot;${dirs.ncover_results}${path.separator}nunit-results.xml&quot; /nologo /framework=${microsoft.framework} /exclude:${tests.excluded_categories.comma_separated}" if="${test.framework=='nunit'}" />
<!--property name="test.args" value="/xml:&quot;${dirs.ncover_results}\nunit-results.xml&quot; /nologo /framework=${microsoft.framework} /exclude:${tests.excluded_categories.comma_separated}" if="${test.framework=='nunit'}" /-->
- <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="false" />
<target name="go" depends="run_tasks" if="${file::exists(app.ncover) and test.framework !='none'}" />
<target name="run_tasks" if="${file::exists(app.ncover) and test.framework !='none'}">
- <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="get_test_dlls, ncover, ncover_explorer"
description="Using NCover to Analyze project for test quality indicators."
if="${file::exists(app.ncover) and test.framework !='none'}" />
- <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.ncover_results}."/>
+ <echo level="Warning" 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)}." />
+ <echo level="Warning" 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>
@@ -111,13 +86,13 @@
</foreach>
<property name="dlls.test" value="${dll.names}" />
- <echo message="Running NCover against these test dlls - ${dlls.test}." />
+ <echo level="Warning" 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}." />
+ <echo level="Warning" 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}"
@@ -139,7 +114,7 @@
</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}." />
+ <echo level="Warning" 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}"
@@ -168,19 +143,8 @@
</target>
<target name="open_results">
- <echo message="Opening results - ${path::get-full-path(dirs.ncover_results) + path.separator + file.html.code_coverage_results}" />
+ <echo level="Warning" message="Opening results - ${path::get-full-path(dirs.ncover_results) + path.separator + file.html.code_coverage_results}" />
<results display="${path::get-full-path(dirs.ncover_results) + path.separator + file.html.code_coverage_results}" />
</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>
View
57 assemblies/build/analyzers/ndepend.step
@@ -21,21 +21,22 @@
<property name="app.ndepend" value="C:${path.separator}Program Files${path.separator}NDepend${path.separator}NDepend.Console.exe" overwrite="false" />
<property name="dirs.ndepend_results" value="${dirs.build_artifacts}${path.separator}ndepend" />
<property name="files.ndepend_config" value="${path::get-full-path(dirs.current)}${path.separator}${path.to.toplevel}${path.separator}NDepend.xml" />
- <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="false" />
<target name="go" depends="run_tasks" if="${file::exists(app.ndepend)}" />
<target name="run_tasks" if="${file::exists(app.ndepend)}">
- <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"
@@ -44,38 +45,13 @@
if="${file::exists(app.ndepend)}" />
<target name="prepare">
- <echo message="Removing and adding ${dirs.ndepend_results}."/>
+ <echo level="Warning" 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="${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="ndepend" depends="prepare" if="${file::exists(app.ndepend)}">
- <echo message="Attempting to run NDepend at ${app.ndepend} for file ${files.ndepend_config}." />
+ <echo level="Warning" 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:${path.separator}WINDOWS${path.separator}Microsoft.NET${path.separator}Framework${path.separator}v2.0.50727 C:${path.separator}WINDOWS${path.separator}Microsoft.NET${path.separator}Framework${path.separator}v3.0 C:${path.separator}WINDOWS${path.separator}Microsoft.NET${path.separator}Framework${path.separator}v3.5" />
@@ -84,19 +60,8 @@
</target>
<target name="open_results">
- <echo message="Opening results - ${path::get-full-path(dirs.ndepend_results) + path.separator + 'NDependReport.html'}" />
+ <echo level="Warning" message="Opening results - ${path::get-full-path(dirs.ndepend_results) + path.separator + 'NDependReport.html'}" />
<results display="${path::get-full-path(dirs.ndepend_results) + path.separator + 'NDependReport.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>
View
60 assemblies/build/analyzers/nitriq.step
@@ -26,28 +26,28 @@
<property name="files.nitriq_queries" value="${path::get-full-path(dirs.current)}${path.separator}${path.to.toplevel}${path.separator}nitriq.nq" />
<property name="file.html.nitriq_results" value="${dirs.nitriq_results}${path.separator}${project.name}.nitriq-results.html" />
- <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="false" />
<target name="go" depends="precheck" if="${file::exists(app.nitriq)}" />
<target name="precheck" if="${file::exists(app.nitriq)}">
- <echo message="Attempting to locate console edition of Nitriq." />
+ <echo level="Warning" message="Attempting to locate console edition of Nitriq." />
<property name="app.nitriq" value="C:${path.separator}Program Files (x86)${path.separator}NimblePros${path.separator}Nitriq Console + Pro\Nitriq.Console.exe" if="${not file::exists(app.nitriq)}" />
<property name="app.nitriq" value="C:${path.separator}Program Files${path.separator}NimblePros\Nitriq Console + Pro - Nitriq.Console.exe" if="${not file::exists(app.nitriq)}" />
<call target="run_tasks" if="${file::exists(app.nitriq) and file::exists(files.nitriq_project)}" />
</target>
- <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"
@@ -56,58 +56,22 @@
if="${file::exists(app.nitriq)}" />
<target name="prepare">
- <echo message="Removing and adding ${dirs.nitriq_results}."/>
+ <echo level="Warning" message="Removing and adding ${dirs.nitriq_results}."/>
<delete dir="${dirs.nitriq_results}" failonerror="false" />
<mkdir dir="${dirs.nitriq_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="${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="nitriq" depends="prepare" if="${file::exists(app.nitriq)}">
- <echo message="Attempting to run Nitriq at ${app.nitriq} for file ${files.nitriq_project}." />
+ <echo level="Warning" message="Attempting to run Nitriq at ${app.nitriq} for file ${files.nitriq_project}." />
<exec program="${app.nitriq}" workingdir="${dirs.build.code}">
<arg line="${files.nitriq_project} ${files.nitriq_queries} ${file.html.nitriq_results}" />
</exec>
</target>
<target name="open_results">
- <echo message="Opening results - ${path::get-full-path(dirs.nitriq_results) + path.separator + file.html.nitriq_results}" />
+ <echo level="Warning" message="Opening results - ${path::get-full-path(dirs.nitriq_results) + path.separator + file.html.nitriq_results}" />
<results display="${path::get-full-path(dirs.nitriq_results) + path.separator + file.html.nitriq_results}" />
</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>
View
66 assemblies/build/analyzers/nunit.test.step
@@ -36,9 +36,6 @@
<property name="dlls.test" value="" />
<property name="tests.ran" value="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" />
@@ -47,45 +44,23 @@
<target name="run_all_tests" depends="prepare, set_nunit_failure_mode, get_test_dlls_all, run_tests, generate_report" description="Like go but runs all tests" />
<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="set_nunit_failure_mode, get_test_dlls, 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="${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>
@@ -95,7 +70,7 @@
</target>
<target name="get_test_dlls">
- <echo message="Getting test dlls based on name in directory ${path::get-full-path(dirs.build.code)}." />
+ <echo level="Warning" 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>
@@ -114,13 +89,13 @@
</foreach>
<property name="dlls.test" value="${dll.names}" />
- <echo message="Running NUnit against these test dlls - ${dlls.test}." />
+ <echo level="Warning" message="Running NUnit against these test dlls - ${dlls.test}." />
<property name="args.test_runner" value="${dlls.test} ${test.args} ${test.args.exclude}" />
</target>
<target name="get_test_dlls_all">
- <echo message="Getting all test dlls (including integration tests) based on name in directory ${path::get-full-path(dirs.build.code)}." />
+ <echo level="Warning" message="Getting all test dlls (including integration tests) based on name in directory ${path::get-full-path(dirs.build.code)}." />
<property name="dll.names" value="" />
<foreach item="File" property="dll.filename">
<in>
@@ -137,7 +112,7 @@
</foreach>
<property name="dlls.test" value="${dll.names}" />
- <echo message="Running NUnit against these test dlls - ${dlls.test}." />
+ <echo level="Warning" message="Running NUnit against these test dlls - ${dlls.test}." />
<property name="args.test_runner" value="${dlls.test} ${test.args}" />
</target>
@@ -146,7 +121,7 @@
<if test="${dlls.test !=''}">
<property name="tests.ran" value="true" />
- <echo message="Running tests using NUnit and putting results in ${dirs.test_results}."/>
+ <echo level="Warning" message="Running tests using NUnit and putting results in ${dirs.test_results}."/>
<exec
program="${app.nunit.console}"
workingdir="${dirs.build.code}"
@@ -155,7 +130,7 @@
</exec>
</if>
<if test="${dlls.test ==''}">
- <echo message="No test dlls to run against" />
+ <echo level="Warning" message="No test dlls to run against" />
</if>
</target>
@@ -171,19 +146,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>
View
66 assemblies/build/analyzers/storevil.test.step
@@ -29,9 +29,6 @@
<property name="app.storevil.console" value="${path::get-full-path(dirs.lib)}${path.separator}StorEvil${path.separator}StorEvil.exe" overwrite="false" />
<property name="dlls.test" value="" />
<property name="tests.ran" value="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" />
@@ -40,45 +37,23 @@
<target name="run_all_tests" depends="prepare, set_storevil_failure_mode, get_spec_dlls_all, run_tests, generate_report" description="Like go but runs all tests" />
<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="set_storevil_failure_mode, get_spec_dlls, run_tests, generate_report"
description="Testing with StorEvil." />
- <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>
@@ -88,7 +63,7 @@
</target>
<target name="get_spec_dlls">
- <echo message="Getting spec dlls based on name in directory ${path::get-full-path(dirs.build.code)}." />
+ <echo level="Warning" message="Getting spec 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>
@@ -102,13 +77,13 @@
</foreach>
<property name="dlls.test" value="${dll.names}" />
- <echo message="Running StorEvil against these spec dlls - ${dlls.test}." />
+ <echo level="Warning" message="Running StorEvil against these spec dlls - ${dlls.test}." />
<property name="args.test_runner" value="${dlls.test} ${test.args} ${test.args.exclude}" />
</target>
<target name="get_spec_dlls_all">
- <echo message="Getting all spec dlls (including integration tests) based on name in directory ${path::get-full-path(dirs.build.code)}." />
+ <echo level="Warning" message="Getting all spec dlls (including integration tests) based on name in directory ${path::get-full-path(dirs.build.code)}." />
<property name="dll.names" value="" />
<foreach item="File" property="dll.filename">
<in>
@@ -122,15 +97,15 @@
</foreach>
<property name="dlls.test" value="${dll.names}" />
- <echo message="Running StoreEvil against these spec dlls - ${dlls.test}." />
+ <echo level="Warning" message="Running StoreEvil against these spec dlls - ${dlls.test}." />
<property name="args.test_runner" value="${dlls.test} ${test.args}" />
</target>
<target name="run_tests" depends="prepare" description="Running Unit Tests">
<if test="${dlls.test !=''}">
- <echo message="Running tests using StorEvil and putting results in ${dirs.test_results}."/>
+ <echo level="Warning" message="Running tests using StorEvil and putting results in ${dirs.test_results}."/>
<exec
program="${app.storevil.console}"
workingdir="${dirs.build.code}"
@@ -140,7 +115,7 @@
<property name="tests.ran" value="true" />
</if>
<if test="${dlls.test ==''}">
- <echo message="No test dlls to run against" />
+ <echo level="Warning" message="No test dlls to run against" />
</if>
</target>
@@ -156,19 +131,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>
View
50 assemblies/build/analyzers/test.step
@@ -16,52 +16,27 @@
<property name="folder.app.drop" value="${project.name}" overwrite="false" />
<property name="dirs.build.code" value="${dirs.build}${path.separator}${folder.app.drop}" overwrite="false" />
<property name="test.framework" value="mbunit" 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" />
<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_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="${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_tests">
<nant buildfile="${dirs.current}${path.separator}mbunit2.test.step" inheritall="true" if="${test.framework=='mbunit2'}" />
<nant buildfile="${dirs.current}${path.separator}gallio.test.step" inheritall="true" if="${test.framework=='gallio'}" />
@@ -89,15 +64,4 @@
<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="${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>
View
60 assemblies/build/analyzers/xunit.test.step
@@ -35,62 +35,37 @@
<property name="tests.ran" value="false" />
<property name="tests.run_all" value="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" />
<target name="go" depends="run_tasks" />
<target name="run_all_tests" depends="prepare, set_run_all_flag, run_tests, generate_report" description="Like go but runs all tests" />
- <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, 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="${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="set_run_all_flag">
- <echo message="Running ALL test assemblies including integration and database tests with xUnit." />
+ <echo level="Warning" message="Running ALL test assemblies including integration and database tests with xUnit." />
<property name="tests.run_all" value="true" />
</target>
@@ -112,7 +87,7 @@
<property name="dll.name" value="${string::replace(string::replace(dll.filename,path::get-full-path(dirs.build.code) + '\',''),'\',path.separator)}" />
<property name="test.args" value="${xunit.separator}xml &quot;${dirs.test_results}${path.separator}${dll.name}-results.xml&quot; ${xunit.separator}html &quot;${dirs.test_results}${path.separator}${dll.name}-results.html&quot; ${xunit.separator}nunit &quot;${dirs.test_results}${path.separator}${dll.name}-nresults.xml&quot; " />
<property name="args.test_runner" value="${dll.name} ${test.args} " />
- <echo message="Running tests using xUnit with args '${args.test_runner}' and putting results in ${dirs.test_results}."/>
+ <echo level="Warning" message="Running tests using xUnit with args '${args.test_runner}' and putting results in ${dirs.test_results}."/>
<exec
program="${app.xunit.console}"
workingdir="${dirs.build.code}"
@@ -136,19 +111,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>
View
85 assemblies/build/compile.step
@@ -45,66 +45,44 @@
<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="check_for_multitargeting" if="${target::exists('check_for_multitargeting')}" />
- <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}" />
<call target="set_file_attributes_to_normal" />
</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="${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="error_check">
<fail message="You must fill out the project.name, repository.path, and company.name settings in the settings${path.separator}UppercuT.config file. Please do that and retry the build."
if="${project.name=='__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__'}" />
</target>
<target name="check_for_multitargeting">
<if test="${string::contains(microsoft.framework,',')}">
- <echo message="You want to multi target, eh? You passed a comma into the framework: ${microsoft.framework}" />
+ <echo level="Warning" message="You want to multi target, eh? You passed a comma into the framework: ${microsoft.framework}" />
<property name="framework.multitargeting" value="true" />
<property name="framework.multitargeting.delimiter" value="," />
</if>
<if test="${string::contains(microsoft.framework,';')}">
- <echo message="You want to multi target, eh? You passed a semicolon into the framework: ${microsoft.framework}" />
+ <echo level="Warning" message="You want to multi target, eh? You passed a semicolon into the framework: ${microsoft.framework}" />
<property name="framework.multitargeting" value="true" />
<property name="framework.multitargeting.delimiter" value=";" />
</if>
</target>
<target name="build_code" depends="" description="Building Library">
- <echo message="Compiling ${solution.path}."/>
+ <echo level="Warning" message="Compiling ${solution.path}."/>
<call target="build_dotNET_code" if="${microsoft.framework !='vb6'}" />
<call target="build_vb6_code" if="${microsoft.framework =='vb6'}" />
</target>
@@ -125,17 +103,17 @@
</target>
<target name="build_dotNet_code_framework">
- <echo message="Building on ${framework::get-version(microsoft.framework.specific)}" />
+ <echo level="Warning" message="Building on ${framework::get-version(microsoft.framework.specific)}" />
<property name="nant.settings.currentframework" value="${string::trim(microsoft.framework.specific)}" />
<mkdir dir="${msbuild.outputpath}" />
<if test="${platform::is-unix()}">
<!-- Do clean and build in two steps since xbuild has a bug with using OutputPath and Rebuild together Bug #628525 at Novell -->
- <echo message="Cleaning build..." />
+ <echo level="Warning" message="Cleaning build..." />
<exec program="${app.xbuild}"
basedir="/usr/bin"
workingdir="${dirs.build}"
commandline="${solution.path} /nologo /property:OutputPath='${msbuild.outputpath}' /property:Configuration=${msbuild.configuration} /verbosity:minimal /noconsolelogger /target:Clean" />
- <echo message="Building..." />
+ <echo level="Warning" message="Building..." />
<exec program="${app.xbuild}"
basedir="/usr/bin"
workingdir="${dirs.build}"
@@ -147,12 +125,12 @@
<if test="${framework.multitargeting}">
<if test="${framework::get-family(microsoft.framework.specific) == 'mono'}" >
<!-- Do clean and build in two steps since xbuild has a bug with using OutputPath and Rebuild together Bug #628525 at Novell -->
- <echo message="Cleaning build..." />
+ <echo level="Warning" message="Cleaning build..." />
<exec program="${app.xbuild}"
basedir="${dirs.build.windows.mono}"
workingdir="${dirs.build.windows.mono}"
commandline="${solution.path.windows.mono} /nologo /property:OutputPath='${msbuild.outputpath}' /property:Configuration=${msbuild.configuration} /verbosity:minimal /noconsolelogger /target:Clean" />
- <echo message='Building...by running this command ${app.xbuild} ${solution.path.windows.mono} /nologo /property:OutputPath="${msbuild.outputpath.windows.mono}" /property:Configuration=${msbuild.configuration} /verbosity:minimal' />
+ <echo level="Warning" message='Building...by running this command ${app.xbuild} ${solution.path.windows.mono} /nologo /property:OutputPath="${msbuild.outputpath.windows.mono}" /property:Configuration=${msbuild.configuration} /verbosity:minimal' />
<exec program="${app.xbuild}"
basedir="${dirs.build.windows.mono}"
workingdir="${dirs.build.windows.mono}"
@@ -171,12 +149,12 @@
<if test="${not framework.multitargeting}">
<if test="${framework::get-family(microsoft.framework.specific) == 'mono'}" >
<!-- Do clean and build in two steps since xbuild has a bug with using OutputPath and Rebuild together Bug #628525 at Novell -->
- <echo message="Cleaning build..." />
+ <echo level="Warning" message="Cleaning build..." />
<exec program="${app.xbuild}"
basedir="${dirs.build.windows.mono}"
workingdir="${dirs.build.windows.mono}"
commandline="${solution.path.windows.mono} /nologo /property:OutputPath='${msbuild.outputpath}' /property:Configuration=${msbuild.configuration} /verbosity:minimal /noconsolelogger /target:Clean" />
- <echo message='Building without multitargeting by running this command ${app.xbuild} ${solution.path.windows.mono} /nologo /property:OutputPath="${msbuild.outputpath.windows.mono}" /property:Configuration=${msbuild.configuration} /verbosity:minimal' />
+ <echo level="Warning" message='Building without multitargeting by running this command ${app.xbuild} ${solution.path.windows.mono} /nologo /property:OutputPath="${msbuild.outputpath.windows.mono}" /property:Configuration=${msbuild.configuration} /verbosity:minimal' />
<exec program="${app.xbuild}"
basedir="${dirs.build.windows.mono}"
workingdir="${dirs.build.windows.mono}"
@@ -195,12 +173,12 @@
<if test="${framework.multitargeting}">
<if test="${framework::get-family(microsoft.framework.specific) == 'mono'}" >
<!-- Do clean and build in two steps since xbuild has a bug with using OutputPath and Rebuild together Bug #628525 at Novell -->
- <echo message="Cleaning build..." />
+ <echo level="Warning" message="Cleaning build..." />
<exec program="${app.xbuild}"
basedir="${dirs.build}"
workingdir="${dirs.build}"
commandline="${solution.path} /nologo /property:Configuration=${msbuild.configuration} /verbosity:minimal /noconsolelogger /target:Clean" />
- <echo message="Building..." />
+ <echo level="Warning" message="Building..." />
<exec program="${app.xbuild}"
basedir="${dirs.build}"
workingdir="${dirs.build}"
@@ -218,12 +196,12 @@
<if test="${not framework.multitargeting}">
<if test="${framework::get-family(microsoft.framework.specific) == 'mono'}" >
<!-- Do clean and build in two steps since xbuild has a bug with using OutputPath and Rebuild together Bug #628525 at Novell -->
- <echo message="Cleaning build..." />
+ <echo level="Warning" message="Cleaning build..." />
<exec program="${app.xbuild}"
basedir="${dirs.build.windows.mono}"
workingdir="${dirs.build.windows.mono}"
commandline="${solution.path.windows.mono} /nologo /property:Configuration=${msbuild.configuration} /verbosity:minimal /noconsolelogger /target:Clean" />
- <echo message="Building...by running this command ${app.xbuild} ${solution.path.windows.mono} /nologo /property:Configuration=${msbuild.configuration} /verbosity:minimal" />
+ <echo level="Warning" message="Building...by running this command ${app.xbuild} ${solution.path.windows.mono} /nologo /property:Configuration=${msbuild.configuration} /verbosity:minimal" />
<exec program="${app.xbuild}"
basedir="${dirs.build.windows.mono}"
workingdir="${dirs.build.windows.mono}"
@@ -245,7 +223,7 @@
</target>
<target name="copy_documentation">
- <echo message="Building documentation files to ${dirs.build}${path.separator}${folder.documentation}."/>
+ <echo level="Warning" message="Building documentation files to ${dirs.build}${path.separator}${folder.documentation}."/>
<copy todir="${dirs.build}${path.separator}${folder.documentation}">
<fileset basedir="${dirs.docs}">
<include name="**/*.*" />
@@ -254,7 +232,7 @@
</target>
<target name="copy_db">
- <echo message="Building database files to ${dirs.build}${path.separator}${folder.database}."/>
+ <echo level="Warning" message="Building database files to ${dirs.build}${path.separator}${folder.database}."/>
<copy todir="${dirs.build}${path.separator}${folder.database}">
<fileset basedir="${dirs.db}">
<include name="**/*.*" />
@@ -263,23 +241,12 @@
</target>
<target name="set_file_attributes_to_normal">
- <echo message="Removing read only attributes that some source control things put on files in '${dirs.build}'." />
+ <echo level="Warning" message="Removing read only attributes that some source control things put on files in '${dirs.build}'." />
<attrib normal="true">
<fileset basedir="${dirs.build}">
<include name="**/*" />
</fileset>
</attrib>
</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>
+</project>
View
11 assemblies/build/customize.build
@@ -21,7 +21,8 @@
<target name="go" depends="run_tasks, report_finish_time" />
<target name="run_tasks">
- <echo message="Running ${project::get-name()} to create custom tasks." />
+ <echo level="Warning" message="" />
+ <echo level="Warning" message="Running ${project::get-name()} to create custom tasks." />
<call target="prepare" if="${target::exists('prepare')}" />
<call target="run_normal_tasks" />
</target>
@@ -31,7 +32,7 @@
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}'." />
+ <echo level="Warning" 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."
@@ -40,7 +41,7 @@
<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}." />
+ <echo level="Warning" 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 + path.separator + file.customized)}" />
<call target="create_file_if_not_already_existing" />
@@ -52,7 +53,7 @@
<property name="path.to.custom_file" value="${path.separator}versioners" if="${file::exists('versioners' + path.separator + 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.separator}${path.to.custom_file}'. This means the custom path is going to be ${dirs.build_scripts_custom}." />
+ <echo level="Warning" message="Found ${customize.step.name} in '${dirs.current}${path.separator}${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">
@@ -71,7 +72,7 @@
</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}${path.separator}${file.customized} and don't forget to add it to source control." />
+ <echo level="Warning" message="Customize finished at ${datetime::now()}. Please make any customizations you need to now to ${dirs.build_scripts_custom}${path.separator}${file.customized} and don't forget to add it to source control." />
</target>
</project>
View
70 assemblies/build/default.build
@@ -32,11 +32,8 @@
<property name="run.ilmerge" value="false" overwrite="false" />
<property name="file.uppercut.assembly" value="uppercut.tasks.dll" />
<property name="path.uppercut.assembly" value="${dirs.current}${path.separator}${file.uppercut.assembly}" />
- <property name="obfuscate" value="false" overwrite="false" />
+ <property name="obfuscate" value="false" overwrite="false" />
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.build" />
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.build" />
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.build" />
<property name="is.replaced" value="false" />
<property name="fail.build.on.error" value="true" />
@@ -47,7 +44,7 @@
</target>
<target name="report_start_time">
- <echo message="Build for ${project.name} started at ${datetime::now()} with UppercuT." />
+ <echo level="Warning" message="Build for ${project.name} started at ${datetime::now()} with UppercuT." />
</target>
<target name="stop_recorder">
@@ -58,48 +55,26 @@
file="${log.build}"
todir="${dirs.drop}${path.separator}${folder.build_artifacts}"
/>
+ <echo level="Warning" message="See '${dirs.drop}${path.separator}${folder.build_artifacts}${path.separator}build.log' for detailed build log information." />
</target>
<target name="run_tasks">
- <echo message="Running ${project::get-name()} tasks." />
+ <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="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="${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.build}."/>
+ <echo level="Warning" message="Removing and adding ${dirs.build}."/>
<delete dir="${dirs.build}" failonerror="false" />
<mkdir dir="${dirs.build}" failonerror="false" />
</target>
@@ -140,34 +115,27 @@
<property name="version.revision" value="${environment::get-variable('uc.app.revision')}" if="${environment::variable-exists('uc.app.revision')}" />
<property name="version.hash" value="${environment::get-variable('uc.app.revision.hash')}" if="${environment::variable-exists('uc.app.revision.hash')}" />
<property name="version.hash" value="${version.revision}" if="${version.hash == '0'}" />
- <echo message="Using revision number: ${version.revision} and hash: ${version.hash}." />
+ <echo level="Warning" message="Using revision number: ${version.revision} and hash: ${version.hash}." />
</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}." />
+ <echo level="Warning" message="Using build number ${version.build}." />
</target>
<target name="get_drop_directory">
<property name="dirs.drop" value="${environment::get-variable('CCNetArtifactDirectory')}${path.separator}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="${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>
+ <echo level="Warning" message="Compiled code drop directory will be ${path::get-full-path(dirs.drop)}." />
</target>
<target name="report_finish_time">
- <echo message="Build for ${project.name} finished at ${datetime::now()} with UppercuT version ${version.uppercut}." />
+ <echo level="Warning" message="" />
+ <echo level="Warning" message="====================" />
+ <echo level="Warning" message="${project::get-name()} - FINISHED!" />
+ <echo level="Warning" message="====================" />
+ <echo level="Warning" message="Build for ${project.name} finished at ${datetime::now()} with UppercuT version ${version.uppercut}." />
</target>
<target name="report_uppercut_version">
@@ -176,7 +144,7 @@
xpath="/uppercut/version"
property="version.uppercut"
failonerror="false" />
- <echo message="Using UppercuT version: ${version.uppercut}." />
+ <echo level="Warning" message="Using UppercuT version: ${version.uppercut}." />
</target>
<target name="load_uppercut_assemblies">
View
89 assemblies/build/deploymentBuilder.step
@@ -24,53 +24,29 @@
<property name="dirs.src.deployment.settings.templates" value="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}${folder.deployment}${path.separator}Settings" overwrite="false" />
<property name="dirs.deployment.settings.templates.holding" value="${dirs.deployment}${path.separator}settingsHolding" overwrite="false" />
<property name="dirs.deployment.settings.templates" value="${dirs.drop}${path.separator}${folder.deployment}${path.separator}Settings" 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="false" />
<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="copy_templates, copy_settings_templates, set_file_attributes_to_normal, 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="${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="copy_templates" if="${directory::exists(dirs.deployment.templates)}">
<copy todir="${dirs.deployment.templates.holding}">
<fileset basedir="${dirs.deployment.templates}">
@@ -88,7 +64,7 @@
</target>
<target name="set_file_attributes_to_normal">
- <echo message="Removing read only attributes that some source control things put on files in '${dirs.deployment}'." />
+ <echo level="Warning" message="Removing read only attributes that some source control things put on files in '${dirs.deployment}'." />
<attrib normal="true">
<fileset basedir="${dirs.deployment}">
<include name="**/*" />
@@ -97,37 +73,32 @@
</target>
<target name="build_deployments" if="${directory::exists(dirs.deployment.templates.holding)}" >
- <buildTemplateFiles
- settingsFilesDirectory="${dirs.deployment.settings}"
- templatesDirectory="${dirs.deployment.templates.holding}"
- destinationDirectory="${dirs.deployment}"
- templateExtension=".BAT"
- keepExtension="true"
- useEnvironmentSubdirectory="false"
- />
+ <echo level="Warning" message="DeploymentBuilder: Building Templates in '${dirs.deployment}' with '*.bat' as the name." />
+ <!--loglevel level="Info" -->
+ <buildTemplateFiles
+ settingsFilesDirectory="${dirs.deployment.settings}"
+ templatesDirectory="${dirs.deployment.templates.holding}"
+ destinationDirectory="${dirs.deployment}"
+ templateExtension=".BAT"
+ keepExtension="true"
+ useEnvironmentSubdirectory="false"
+ />
+ <!--/loglevel -->
<delete dir="${dirs.deployment.templates.holding}" />
</target>
<target name="build_deployments_settings" if="${directory::exists(dirs.deployment.settings.templates.holding)}" >
- <buildTemplateFiles
- settingsFilesDirectory="${dirs.deployment.settings}"
- templatesDirectory="${dirs.deployment.settings.templates.holding}"
- destinationDirectory="${dirs.deployment.settings.templates}"
- templateExtension=".BAT"
- keepExtension="true"
- />
+ <echo level="Warning" message="DeploymentBuilder Part Deuce: Building Templates in '${dirs.deployment.settings.templates}' with '*.bat' as the name." />
+ <!--loglevel level="Info" -->
+ <buildTemplateFiles
+ settingsFilesDirectory="${dirs.deployment.settings}"
+ templatesDirectory="${dirs.deployment.settings.templates.holding}"
+ destinationDirectory="${dirs.deployment.settings.templates}"
+ templateExtension=".BAT"
+ keepExtension="true"
+ />
+ <!--/loglevel -->
<delete dir="${dirs.deployment.settings.templates.holding}" />
</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>
View
104 assemblies/build/environmentBuilder.step
@@ -25,96 +25,78 @@
<property name="dirs.build.code" value="${dirs.build}${path.separator}${folder.app.drop}" overwrite="false" />
<property name="dirs.build.database" value="${dirs.build}${path.separator}${folder.database}" overwrite="false" />
<property name="dirs.build.docs" value="${dirs.build}${path.separator}${folder.documentation}" 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" />
<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="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="${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}">