uppercutbuild 1.3.0.0 → 1.4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. data/docs/README +20 -2
  2. data/docs/Samples/CC.NET/server/ccnet.config +8 -2
  3. data/lib/build.bat +1 -3
  4. data/lib/build/Castle.Core.dll +0 -0
  5. data/lib/build/Castle.DynamicProxy2.dll +0 -0
  6. data/lib/build/Castle.MicroKernel.dll +0 -0
  7. data/lib/build/Castle.Windsor.dll +0 -0
  8. data/lib/build/UppercuT.xml +1 -2
  9. data/lib/build/analyze.step +9 -44
  10. data/lib/build/analyzers/gallio.test.step +13 -49
  11. data/lib/build/analyzers/mbunit2.test.step +12 -48
  12. data/lib/build/analyzers/metrics.step +106 -0
  13. data/lib/build/analyzers/moma.step +13 -49
  14. data/lib/build/analyzers/ncover.step +14 -50
  15. data/lib/build/analyzers/ndepend.step +12 -47
  16. data/lib/build/analyzers/nitriq.step +13 -49
  17. data/lib/build/analyzers/nunit.test.step +18 -54
  18. data/lib/build/analyzers/storevil.test.step +17 -53
  19. data/lib/build/analyzers/test.step +16 -44
  20. data/lib/build/analyzers/xunit.test.step +13 -49
  21. data/lib/build/compile.step +94 -63
  22. data/lib/build/customize.build +8 -5
  23. data/lib/build/customizers/item.template +2 -1
  24. data/lib/build/default.build +27 -64
  25. data/lib/build/deploymentBuilder.step +60 -60
  26. data/lib/build/environmentBuilder.step +43 -61
  27. data/lib/build/gemsBuild.step +8 -44
  28. data/lib/build/gemsPrepare.step +17 -54
  29. data/lib/build/generateBuildInfo.step +9 -45
  30. data/lib/build/ilmerge.build +14 -60
  31. data/lib/build/nugetBuild.step +12 -45
  32. data/lib/build/nugetPrepare.step +28 -55
  33. data/lib/build/obfuscate.step +12 -45
  34. data/lib/build/open.build +28 -58
  35. data/lib/build/package.step +41 -63
  36. data/lib/build/policyChecks.step +8 -44
  37. data/lib/build/uc.exe +0 -0
  38. data/lib/build/uc.exe.config +3 -0
  39. data/lib/build/updateAssemblies.build +11 -57
  40. data/lib/build/uppercut.dll +0 -0
  41. data/lib/build/uppercut.tasks.dll +0 -0
  42. data/lib/build/versionBuilder.step +12 -44
  43. data/lib/build/versioners/git.step +8 -45
  44. data/lib/build/versioners/hg.step +8 -45
  45. data/lib/build/versioners/svn.step +8 -45
  46. data/lib/build/versioners/tfs.step +7 -43
  47. data/lib/build/zip.build +17 -63
  48. data/lib/lib/NAnt/NAnt.CompressionTasks.dll +0 -0
  49. data/lib/lib/NAnt/NAnt.Contrib.Tasks.dll +0 -0
  50. data/lib/lib/NAnt/NAnt.Core.dll +0 -0
  51. data/lib/lib/NAnt/NAnt.DotNetTasks.dll +0 -0
  52. data/lib/lib/NAnt/NAnt.MSNetTasks.dll +0 -0
  53. data/lib/lib/NAnt/NAnt.NUnit.dll +0 -0
  54. data/lib/lib/NAnt/NAnt.NUnit1Tasks.dll +0 -0
  55. data/lib/lib/NAnt/NAnt.NUnit2Tasks.dll +0 -0
  56. data/lib/lib/NAnt/NAnt.SourceControlTasks.dll +0 -0
  57. data/lib/lib/NAnt/NAnt.VSNetTasks.dll +0 -0
  58. data/lib/lib/NAnt/NAnt.VisualCppTasks.dll +0 -0
  59. data/lib/lib/NAnt/NAnt.Win32Tasks.dll +0 -0
  60. data/lib/lib/NAnt/NAnt.exe +0 -0
  61. data/lib/lib/NAnt/NAnt.exe.config +333 -136
  62. data/lib/lib/NAnt/NDoc.Documenter.NAnt.dll +0 -0
  63. data/lib/lib/NAnt/SLiNgshoT.Core.dll +0 -0
  64. data/lib/lib/NAnt/SLiNgshoT.exe +0 -0
  65. data/lib/lib/NAnt/extensions/common/2.0/NAnt.MSBuild.dll +0 -0
  66. data/lib/lib/NuGet/NuGet.exe +0 -0
  67. data/lib/open.bat +1 -1
  68. data/lib/settings/LOCAL.settings +3 -1
  69. data/lib/settings/UppercuT.config +10 -7
  70. data/lib/test.bat +2 -2
  71. data/lib/zip.bat +2 -2
  72. metadata +42 -89
  73. data/lib/lib/NAnt/MSITaskErrors.mst +0 -0
  74. data/lib/lib/NAnt/MSITaskTemplate.msi +0 -0
  75. data/lib/lib/NAnt/MSMTaskErrors.mst +0 -0
  76. data/lib/lib/NAnt/MSMTaskTemplate.msm +0 -0
  77. data/lib/lib/NAnt/NDepend.Build.NAntTasks.dll +0 -0
  78. data/lib/lib/NAnt/extensions/common/2.0/NAnt.MSBuild.xml +0 -36
  79. data/lib/lib/NAnt/lib/mono/1.0/NDoc.Core.dll +0 -0
  80. data/lib/lib/NAnt/lib/mono/1.0/NDoc.Documenter.Msdn.dll +0 -0
  81. data/lib/lib/NAnt/lib/mono/1.0/NDoc.ExtendedUI.dll +0 -0
  82. data/lib/lib/NAnt/lib/mono/1.0/nunit.core.dll +0 -0
  83. data/lib/lib/NAnt/lib/mono/1.0/nunit.framework.dll +0 -0
  84. data/lib/lib/NAnt/lib/mono/1.0/nunit.util.dll +0 -0
  85. data/lib/lib/NAnt/lib/mono/2.0/NDoc.Core.dll +0 -0
  86. data/lib/lib/NAnt/lib/mono/2.0/NDoc.Documenter.Msdn.dll +0 -0
  87. data/lib/lib/NAnt/lib/mono/2.0/NDoc.ExtendedUI.dll +0 -0
  88. data/lib/lib/NAnt/lib/mono/2.0/nunit.core.dll +0 -0
  89. data/lib/lib/NAnt/lib/mono/2.0/nunit.framework.dll +0 -0
  90. data/lib/lib/NAnt/lib/mono/2.0/nunit.util.dll +0 -0
  91. data/lib/lib/NAnt/lib/net/1.1/NDoc.Core.dll +0 -0
  92. data/lib/lib/NAnt/lib/net/1.1/NDoc.Documenter.Msdn.dll +0 -0
  93. data/lib/lib/NAnt/lib/net/1.1/NDoc.ExtendedUI.dll +0 -0
  94. data/lib/lib/NAnt/lib/net/1.1/nunit.core.dll +0 -0
  95. data/lib/lib/NAnt/lib/net/1.1/nunit.framework.dll +0 -0
  96. data/lib/lib/NAnt/lib/net/1.1/nunit.util.dll +0 -0
  97. data/lib/lib/NAnt/lib/net/2.0/NDoc.Core.dll +0 -0
  98. data/lib/lib/NAnt/lib/net/2.0/NDoc.Documenter.Msdn.dll +0 -0
  99. data/lib/lib/NAnt/lib/net/2.0/NDoc.ExtendedUI.dll +0 -0
  100. data/lib/lib/NAnt/lib/net/2.0/nunit.core.dll +0 -0
  101. data/lib/lib/NAnt/lib/net/2.0/nunit.framework.dll +0 -0
  102. data/lib/lib/NAnt/lib/net/2.0/nunit.util.dll +0 -0
@@ -16,67 +16,31 @@
16
16
  <property name="project.name" value="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__" overwrite="false" />
17
17
  <property name="file.installation_document" value="${dirs.docs}${path.separator}Installation${path.separator}Install.docx" overwrite="false" />
18
18
  <property name="fail.if_no_installation_document" value="false" overwrite="false" />
19
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
20
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
21
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
22
19
  <property name="is.replaced" value="false" />
23
20
  <property name="fail.build.on.error" value="true" />
24
21
 
25
22
  <target name="go" depends="run_tasks" />
26
23
 
27
24
  <target name="run_tasks">
28
- <echo message="Running ${project::get-name()} tasks." />
25
+ <echo level="Warning" message="" />
26
+ <echo level="Warning" message="====================" />
27
+ <echo level="Warning" message="${project::get-name()}" />
28
+ <echo level="Warning" message="====================" />
29
29
  <call target="prepare" if="${target::exists('prepare')}" />
30
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
31
- <call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
30
+ <customExtension extends="${project::get-buildfile-path()}" type="pre" failonerror="${fail.build.on.error}" />
31
+ <customExtension extends="${project::get-buildfile-path()}" type="replace" failonerror="${fail.build.on.error}" />
32
32
  <call target="run_normal_tasks" if="${not is.replaced}" />
33
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
33
+ <customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
34
34
  </target>
35
35
 
36
36
  <target name="run_normal_tasks"
37
37
  depends="install_document_policy"
38
38
  description="Enforcing active rules/policies." />
39
39
 
40
- <target name="custom_tasks_before">
41
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
42
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
43
- <exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
44
- <arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
45
- </exec>
46
- <exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
47
- <arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
48
- </exec>
49
- </target>
50
-
51
- <target name="custom_tasks_replace">
52
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
53
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
54
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
55
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
56
- <exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
57
- <arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
58
- </exec>
59
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
60
- <exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
61
- <arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
62
- </exec>
63
- </target>
64
-
65
40
  <target name="install_document_policy">
66
- <echo message="Checking for the existence of ${path::get-full-path(file.installation_document)}. Do we fail the build if it is missing? ${fail.if_no_installation_document}" />
41
+ <echo level="Warning" message="Checking for the existence of ${path::get-full-path(file.installation_document)}. Do we fail the build if it is missing? ${fail.if_no_installation_document}" />
67
42
  <fail message="You must provide an installation document as a matter of policy."
68
43
  if="${fail.if_no_installation_document == 'true' and not file::exists(file.installation_document)}" />
69
44
  </target>
70
45
 
71
- <target name="custom_tasks_after">
72
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
73
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
74
- <exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
75
- <arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
76
- </exec>
77
- <exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
78
- <arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
79
- </exec>
80
- </target>
81
-
82
46
  </project>
data/lib/build/uc.exe ADDED
Binary file
@@ -0,0 +1,3 @@
1
+ <?xml version="1.0"?>
2
+ <configuration>
3
+ <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
@@ -18,60 +18,36 @@
18
18
  <property name="file.uppercut.assembly" value="uppercut.tasks.dll" />
19
19
  <property name="path.uppercut.assembly" value="${dirs.current}${path.separator}${file.uppercut.assembly}" />
20
20
  <property name="dirs.assemblies" value="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}assemblies" overwrite="false" />
21
- <property name="allow.powershell.unrestricted" value="false" overwrite="false" />
22
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.build" />
23
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.build" />
24
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.build" />
25
21
  <property name="is.replaced" value="false" />
26
22
  <property name="fail.build.on.error" value="true" />
23
+ <property name="app.ruby" value="C:\Ruby\bin\ruby.exe" overwrite="false" />
24
+ <property name="app.powershell" value="%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe" overwrite="false" />
27
25
 
28
- <target name="go" depends="load_uppercut_assemblies, allow_powershell_unrestricted, run_tasks" />
26
+ <target name="go" depends="load_uppercut_assemblies, run_tasks" />
29
27
 
30
28
  <target name="run_tasks">
31
- <echo message="Running ${project::get-name()} tasks." />
29
+ <echo level="Warning" message="" />
30
+ <echo level="Warning" message="====================" />
31
+ <echo level="Warning" message="${project::get-name()}" />
32
+ <echo level="Warning" message="====================" />
32
33
  <call target="prepare" if="${target::exists('prepare')}" />
33
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
34
- <call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
34
+ <customExtension extends="${project::get-buildfile-path()}" type="pre" failonerror="${fail.build.on.error}" />
35
+ <customExtension extends="${project::get-buildfile-path()}" type="replace" failonerror="${fail.build.on.error}" />
35
36
  <call target="run_normal_tasks" if="${not is.replaced}" />
36
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
37
+ <customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
37
38
  </target>
38
39
 
39
40
  <target name="run_normal_tasks"
40
41
  depends="error_check, update_assemblies"
41
42
  description="Moving assemblies to make available for Externals." />
42
43
 
43
- <target name="custom_tasks_before">
44
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
45
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
46
- <exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
47
- <arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
48
- </exec>
49
- <exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
50
- <arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
51
- </exec>
52
- </target>
53
-
54
- <target name="custom_tasks_replace">
55
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
56
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
57
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
58
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
59
- <exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
60
- <arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
61
- </exec>
62
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
63
- <exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
64
- <arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
65
- </exec>
66
- </target>
67
-
68
44
  <target name="error_check">
69
45
  <fail message="You must provide arguments to the command line like this updateAssemblies.build -D:project.name='SOLUTION_NAME_WITHOUT_EXTENSION' or pass the build configuration settings file updateAssemblies.build -D:build.config.settings='Settings${path.separator}Uppercut.config"
70
46
  if="${project.name=='__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__'}" />
71
47
  </target>
72
48
 
73
49
  <target name="update_assemblies">
74
- <echo message="Moving files to ${dirs.assemblies}." />
50
+ <echo level="Warning" message="Moving files to ${dirs.assemblies}." />
75
51
  <copy todir="${dirs.assemblies}">
76
52
  <fileset basedir="${dirs.drop}${path.separator}${folder.app.drop}">
77
53
  <include name="**/*.*" />
@@ -79,30 +55,8 @@
79
55
  </copy>
80
56
  </target>
81
57
 
82
- <target name="custom_tasks_after">
83
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
84
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
85
- <exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
86
- <arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
87
- </exec>
88
- <exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
89
- <arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
90
- </exec>
91
- </target>
92
-
93
58
  <target name="load_uppercut_assemblies">
94
59
  <loadtasks assembly="${path.uppercut.assembly}" if="${file::exists(path.uppercut.assembly)}" />
95
60
  </target>
96
-
97
- <target name="allow_powershell_unrestricted">
98
- <!-- powershell 1.0 -->
99
- <exec program="powershell.exe" if="${allow.powershell.unrestricted}" failonerror="false">
100
- <arg value="set-executionpolicy unrestricted" />
101
- </exec>
102
- <!-- powershell 2.0 -->
103
- <exec program="powershell.exe" if="${allow.powershell.unrestricted}" failonerror="false">
104
- <arg value="set-executionpolicy unrestricted -force -scope CurrentUser" />
105
- </exec>
106
- </target>
107
61
 
108
62
  </project>
Binary file
Binary file
@@ -39,51 +39,27 @@
39
39
  <property name="file.key.name.public" value="${dirs.build}${path.separator}public.${project.name}.snk" overwrite="false" />
40
40
  <property name="obfuscate" value="false" overwrite="false" />
41
41
 
42
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
43
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
44
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
45
42
  <property name="is.replaced" value="false" />
46
43
  <property name="fail.build.on.error" value="true" />
47
44
 
48
45
  <target name="go" depends="run_tasks" />
49
46
 
50
47
  <target name="run_tasks">
51
- <echo message="Running ${project::get-name()} tasks." />
48
+ <echo level="Warning" message="" />
49
+ <echo level="Warning" message="====================" />
50
+ <echo level="Warning" message="${project::get-name()}" />
51
+ <echo level="Warning" message="====================" />
52
52
  <call target="prepare" if="${target::exists('prepare')}" />
53
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
54
- <call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
53
+ <customExtension extends="${project::get-buildfile-path()}" type="pre" failonerror="${fail.build.on.error}" />
54
+ <customExtension extends="${project::get-buildfile-path()}" type="replace" failonerror="${fail.build.on.error}" />
55
55
  <call target="run_normal_tasks" if="${not is.replaced}" />
56
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
56
+ <customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
57
57
  </target>
58
58
 
59
59
  <target name="run_normal_tasks"
60
60
  depends="error_check, determine_language, generate_key_file, generate_assembly_info"
61
61
  description="Generating Assembly File." />
62
62
 
63
- <target name="custom_tasks_before">
64
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
65
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
66
- <exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
67
- <arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
68
- </exec>
69
- <exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
70
- <arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
71
- </exec>
72
- </target>
73
-
74
- <target name="custom_tasks_replace">
75
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
76
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
77
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
78
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
79
- <exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
80
- <arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
81
- </exec>
82
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
83
- <exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
84
- <arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
85
- </exec>
86
- </target>
87
63
 
88
64
  <target name="error_check">
89
65
  <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."
@@ -91,7 +67,7 @@
91
67
  </target>
92
68
 
93
69
  <target name="generate_key_file" description="Generates a .snk using the sn.exe tool if none exists and strong naming is specified" if="${sign.project_with_key}">
94
- <echo message="Generating a strong name key (${file.key.name.private}) using ${app.strongname} if the key file doesn't already exist." />
70
+ <echo level="Warning" message="Generating a strong name key (${file.key.name.private}) using ${app.strongname} if the key file doesn't already exist." />
95
71
  <exec
96
72
  program="${app.strongname}"
97
73
  commandline="-k ${file.key.name.private}"
@@ -114,12 +90,15 @@
114
90
  <target name="generate_assembly_info" description="Generate assembly info">
115
91
  <property name="version.assembly" value="${version.major}.${version.minor}.${version.build}.${version.revision}" />
116
92
  <property name="version.assembly" value="${version.major}.${version.minor}.${version.patch}.0" if="${version.use_semanticversioning}" />
117
- <echo message="Generating SolutionVersion.${language.short} with assembly version ${version.assembly}." />
93
+ <echo level="Warning" message="Generating SolutionVersion.${language.short} with assembly version ${version.assembly}." />
118
94
  <property name="version.file" value="${version.major}.${version.minor}.${version.build}.${version.revision}" />
119
95
  <property name="version.file" value="${version.major}.${version.minor}.${version.patch}.${version.build}" if="${version.use_semanticversioning}" />
120
96
  <property name="version.product" value="${version.major}.${version.minor}.${version.build}.${version.hash}" />
121
97
  <property name="version.product" value="${version.major}.${version.minor}.${version.patch}.${version.hash}" if="${version.use_semanticversioning}" />
122
98
 
99
+ <!-- remove TFS read only if there -->
100
+ <attrib file="${path.file.version}" normal="true" if="${file::exists(path.file.version)}" />
101
+
123
102
  <asminfo output="${path.file.version}" language="${language.long}">
124
103
  <imports>
125
104
  <import namespace="System" />
@@ -149,15 +128,4 @@
149
128
  </asminfo>
150
129
  </target>
151
130
 
152
- <target name="custom_tasks_after">
153
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
154
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
155
- <exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
156
- <arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
157
- </exec>
158
- <exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
159
- <arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
160
- </exec>
161
- </target>
162
-
163
131
  </project>
@@ -14,54 +14,29 @@
14
14
  <property name="repository.path" value="__REPOSITORY_PATH__" overwrite="false" />
15
15
  <property name="version.revision" value="0" overwrite="false" />
16
16
  <property name="version.hash" value="0" overwrite="false" />
17
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
18
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
19
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
20
17
  <property name="is.replaced" value="false" />
21
18
  <property name="fail.build.on.error" value="false" />
22
19
 
23
20
  <target name="go" depends="run_tasks" />
24
21
 
25
22
  <target name="run_tasks">
26
- <echo message="Running ${project::get-name()} tasks." />
23
+ <echo level="Warning" message="" />
24
+ <echo level="Warning" message="====================" />
25
+ <echo level="Warning" message="${project::get-name()}" />
26
+ <echo level="Warning" message="====================" />
27
27
  <call target="prepare" if="${target::exists('prepare')}" />
28
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
29
- <call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
28
+ <customExtension extends="${project::get-buildfile-path()}" type="pre" failonerror="${fail.build.on.error}" />
29
+ <customExtension extends="${project::get-buildfile-path()}" type="replace" failonerror="${fail.build.on.error}" />
30
30
  <call target="run_normal_tasks" if="${not is.replaced}" />
31
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
31
+ <customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
32
32
  </target>
33
33
 
34
34
  <target name="run_normal_tasks"
35
35
  depends="get_revision, get_externally_provided_revision, set_version_environment_variable"
36
36
  description="Generating Assembly File." />
37
37
 
38
- <target name="custom_tasks_before">
39
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
40
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
41
- <exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
42
- <arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
43
- </exec>
44
- <exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
45
- <arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
46
- </exec>
47
- </target>
48
-
49
- <target name="custom_tasks_replace">
50
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
51
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
52
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
53
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
54
- <exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
55
- <arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
56
- </exec>
57
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
58
- <exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
59
- <arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
60
- </exec>
61
- </target>
62
-
63
38
  <target name="get_revision">
64
- <echo message="Getting revision number from working directory ${directory::get-parent-directory(dirs.current)} or remotely at ${repository.path}."/>
39
+ <echo level="Warning" message="Getting revision number from working directory ${directory::get-parent-directory(dirs.current)} or remotely at ${repository.path}."/>
65
40
  <!-- try to update the revision -->
66
41
  <getVersionFromGit
67
42
  gitExecutableWithPath="git"
@@ -92,16 +67,4 @@
92
67
  <setenv name="uc.app.revision.hash" value="${version.hash}"/>
93
68
  </target>
94
69
 
95
-
96
- <target name="custom_tasks_after">
97
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
98
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
99
- <exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
100
- <arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
101
- </exec>
102
- <exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
103
- <arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
104
- </exec>
105
- </target>
106
-
107
70
  </project>
@@ -14,54 +14,29 @@
14
14
  <property name="repository.path" value="__REPOSITORY_PATH__" overwrite="false" />
15
15
  <property name="version.revision" value="0" overwrite="false" />
16
16
  <property name="version.hash" value="0" overwrite="false" />
17
- <property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
18
- <property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
19
- <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
20
17
  <property name="is.replaced" value="false" />
21
18
  <property name="fail.build.on.error" value="false" />
22
19
 
23
20
  <target name="go" depends="run_tasks" />
24
21
 
25
22
  <target name="run_tasks">
26
- <echo message="Running ${project::get-name()} tasks." />
23
+ <echo level="Warning" message="" />
24
+ <echo level="Warning" message="====================" />
25
+ <echo level="Warning" message="${project::get-name()}" />
26
+ <echo level="Warning" message="====================" />
27
27
  <call target="prepare" if="${target::exists('prepare')}" />
28
- <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
29
- <call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
28
+ <customExtension extends="${project::get-buildfile-path()}" type="pre" failonerror="${fail.build.on.error}" />
29
+ <customExtension extends="${project::get-buildfile-path()}" type="replace" failonerror="${fail.build.on.error}" />
30
30
  <call target="run_normal_tasks" if="${not is.replaced}" />
31
- <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
31
+ <customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
32
32
  </target>
33
33
 
34
34
  <target name="run_normal_tasks"
35
35
  depends="get_revision, get_externally_provided_revision, set_version_environment_variable"
36
36
  description="Generating Assembly File." />
37
37
 
38
- <target name="custom_tasks_before">
39
- <echo message="Running custom tasks if ${file.custom.step.before} exists." />
40
- <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
41
- <exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
42
- <arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
43
- </exec>
44
- <exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
45
- <arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
46
- </exec>
47
- </target>
48
-
49
- <target name="custom_tasks_replace">
50
- <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
51
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
52
- <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
53
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
54
- <exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
55
- <arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
56
- </exec>
57
- <property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
58
- <exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
59
- <arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
60
- </exec>
61
- </target>
62
-
63
38
  <target name="get_revision">
64
- <echo message="Getting revision number from working directory ${directory::get-parent-directory(dirs.current)} or remotely at ${repository.path}."/>
39
+ <echo level="Warning" message="Getting revision number from working directory ${directory::get-parent-directory(dirs.current)} or remotely at ${repository.path}."/>
65
40
  <!-- try to update the revision -->
66
41
  <getVersionFromMercurial
67
42
  hgExecutableWithPath="hg"
@@ -92,16 +67,4 @@
92
67
  <setenv name="uc.app.revision.hash" value="${version.hash}"/>
93
68
  </target>
94
69
 
95
-
96
- <target name="custom_tasks_after">
97
- <echo message="Running custom tasks if ${file.custom.step.after} exists." />
98
- <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
99
- <exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
100
- <arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
101
- </exec>
102
- <exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
103
- <arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
104
- </exec>
105
- </target>
106
-
107
70
  </project>