uppercutbuild 0.9.0.321 → 0.9.0.325

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/lib/CREDITS +13 -0
  2. data/lib/ConfigBuilder.doc +0 -0
  3. data/lib/CustomTasks.doc +0 -0
  4. data/lib/DeploymentBuilder.doc +0 -0
  5. data/lib/GettingStarted.doc +0 -0
  6. data/lib/IntegrateUppercuTWithCruiseControl.NET.doc +0 -0
  7. data/lib/IntegrateUppercuTWithHudson.doc +0 -0
  8. data/lib/IntegrateUppercuTWithTeamCity.doc +0 -0
  9. data/lib/LICENSE +174 -0
  10. data/lib/NOTICE +9 -0
  11. data/lib/README +103 -0
  12. data/lib/Samples/CC.NET/ReadMe.txt +2 -0
  13. data/lib/Samples/CC.NET/server/ccnet.config +64 -0
  14. data/lib/Samples/CC.NET/webdashboard/dashboard.config +72 -0
  15. data/lib/Samples/CC.NET/webdashboard/image.ashx +109 -0
  16. data/lib/Samples/CC.NET/webdashboard/xsl/ndependreport-ccnet.v2.xsl +1161 -0
  17. data/lib/Samples/CustomizingBuildSamples/BDDDoc/bdddoc.bat +39 -0
  18. data/lib/Samples/CustomizingBuildSamples/BDDDoc/build.custom/bdddoc.build +52 -0
  19. data/lib/Samples/CustomizingBuildSamples/CustomCompiling/compile.replace.step +134 -0
  20. data/lib/Samples/CustomizingBuildSamples/ILMerge/build.custom/ilmerge.internalize.ignore.txt +2 -0
  21. data/lib/Samples/CustomizingBuildSamples/ILMerge/build.custom/ilmerge.pre.build +31 -0
  22. data/lib/Samples/CustomizingBuildSamples/ILMerge/build/ilmerge.build +108 -0
  23. data/lib/Samples/CustomizingBuildSamples/ILMerge/ilmerge.bat +36 -0
  24. data/lib/Samples/CustomizingBuildSamples/MonoMigrationAnalyzer/moma.bat +37 -0
  25. data/lib/Samples/CustomizingBuildSamples/NCover/ncover.bat +37 -0
  26. data/lib/Samples/CustomizingBuildSamples/WiX/build.custom/default.post.build +13 -0
  27. data/lib/Samples/CustomizingBuildSamples/WiX/build.custom/wix.build +104 -0
  28. data/lib/Samples/CustomizingBuildSamples/Zip/build.custom/zip.post.build +54 -0
  29. data/lib/Samples/CustomizingBuildSamples/Zip/build.custom/zip.pre.build +23 -0
  30. data/lib/Samples/scripts/SVN/ReadMe.txt +5 -0
  31. data/lib/Samples/scripts/SVN/branch.bat +30 -0
  32. data/lib/Samples/scripts/SVN/branchWithCheckout.bat +31 -0
  33. data/lib/Samples/scripts/SVN/checkoutBranch.bat +28 -0
  34. data/lib/Samples/scripts/SVN/checkoutTrunk.bat +28 -0
  35. data/lib/Samples/scripts/SVN/commit.bat +23 -0
  36. data/lib/UppercuT.dot +0 -0
  37. data/lib/UppercuTPresentation.pptx +0 -0
  38. data/lib/UppercuTSteps.pptx +0 -0
  39. data/lib/VersionBuilder.doc +0 -0
  40. data/lib/build/UppercuT.xml +1 -1
  41. data/lib/build/default.build +2 -0
  42. data/lib/build/gemsBuild.step +113 -0
  43. data/lib/build/gemsPrepare.step +144 -0
  44. data/lib/build/uppercut.dll +0 -0
  45. data/lib/build/uppercut.tasks.dll +0 -0
  46. data/lib/gems/__RENAME__.gemspec.remove +18 -0
  47. data/lib/logo/UppercuT.ico +0 -0
  48. data/lib/logo/UppercuT_Logo.jpg +0 -0
  49. data/lib/logo/UppercuT_Logo_Small.jpg +0 -0
  50. data/lib/logo/UppercuT_logo.png +0 -0
  51. data/lib/logo/UppercuT_logo_small.gif +0 -0
  52. data/lib/logo/UppercuT_logo_small.png +0 -0
  53. metadata +52 -4
@@ -0,0 +1,39 @@
1
+ @echo off
2
+
3
+ ::Project UppercuT - http://uppercut.googlecode.com
4
+
5
+ if '%2' NEQ '' goto usage
6
+ if '%3' NEQ '' goto usage
7
+ if '%1' == '/?' goto usage
8
+ if '%1' == '-?' goto usage
9
+ if '%1' == '?' goto usage
10
+ if '%1' == '/help' goto usage
11
+
12
+ SET APP_BDDDOC="..\lib\bdddoc\bdddoc.console.exe"
13
+ SET TEST_ASSEMBLY_NAME="uppercut.tests.dll"
14
+
15
+ SET DIR=%~d0%~p0%
16
+
17
+ SET build.config.settings="%DIR%Settings\UppercuT.config"
18
+ "%DIR%lib\Nant\nant.exe" /f:.\build\compile.step -D:build.config.settings=%build.config.settings%
19
+
20
+ if %ERRORLEVEL% NEQ 0 goto errors
21
+
22
+ "%DIR%lib\Nant\nant.exe" /f:.\build\analyzers\test.step %1 -D:build.config.settings=%build.config.settings%
23
+ "%DIR%lib\Nant\nant.exe" /f:.\build.custom\bdddoc.build -D:build.config.settings=%build.config.settings% -D:app.bdddoc=%APP_BDDDOC% -D:test_assembly=%TEST_ASSEMBLY_NAME%
24
+ "%DIR%lib\Nant\nant.exe" /f:.\build.custom\bdddoc.build open_results
25
+
26
+ if %ERRORLEVEL% NEQ 0 goto errors
27
+
28
+ goto finish
29
+
30
+ :usage
31
+ echo.
32
+ echo Usage: bdddoc.bat
33
+ echo.
34
+ goto finish
35
+
36
+ :errors
37
+ EXIT /B %ERRORLEVEL%
38
+
39
+ :finish
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <project name="BDDRunner" default="go">
3
+ <!-- Project UppercuT - http://uppercut.googlecode.com -->
4
+ <!-- This is a sample for running BDDDoc -->
5
+ <property name="build.config.settings" value="__NONE__" overwrite="false" />
6
+ <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
7
+ <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" overwrite="false" />
8
+ <property name="folder.code_build" value="build_output" overwrite="false" />
9
+ <property name="dirs.build" value="${dirs.current}\..\${folder.code_build}" />
10
+ <property name="folder.code_drop" value="code_drop" overwrite="false" />
11
+ <property name="dirs.drop" value="${dirs.current}\..\${folder.code_drop}" overwrite="false" />
12
+
13
+ <property name="dirs.lib" value="${dirs.current}\..\lib" overwrite="false" />
14
+ <property name="dirs.build_artifacts" value="${path::get-full-path(dirs.build)}\build_artifacts" overwrite="false" />
15
+ <property name="dirs.test_results" value="${dirs.build_artifacts}\mbunit2" overwrite="false" />
16
+ <property name="file.test_results" value="mbunit-results" overwrite="false" />
17
+ <property name="dirs.bdddoc_results" value="${dirs.build_artifacts}\bdddoc" overwrite="false" />
18
+ <property name="files.bdddoc_results" value="${dirs.bdddoc_results}\bdddoc-results.html" overwrite="false" />
19
+ <property name="app.bdddoc" value="${path::get-full-path(dirs.lib)}\bdddoc\bdddoc.console.exe" overwrite="false" />
20
+ <property name="test_attribute" value="ObservationAttribute" overwrite="false" />
21
+ <property name="test_assembly" value="__TEST_ASSEMBLY__" overwrite="false" />
22
+ <property name="folder.app.drop" value="app" overwrite="false" />
23
+
24
+ <target name="go" depends="cleanup, run_bdddoc" description="Tests" />
25
+
26
+ <target name="cleanup">
27
+ <echo message="Removing and adding ${dirs.bdddoc_results}."/>
28
+ <delete dir="${dirs.bdddoc_results}" />
29
+ <mkdir dir="${dirs.bdddoc_results}" />
30
+ </target>
31
+
32
+ <target name="run_bdddoc" depends="cleanup" description="Running BDDDoc">
33
+ <echo message="Running BDDDoc against ${dirs.build}\${folder.app.drop}\${test_assembly} ${test_attribute} ${files.bdddoc_results} ${dirs.test_results}\${file.test_results}.xml."/>
34
+ <exec program="${app.bdddoc}" >
35
+ <arg file="${dirs.build}\${folder.app.drop}\${test_assembly}"/>
36
+ <arg value="${test_attribute}"/>
37
+ <arg file="${files.bdddoc_results}"/>
38
+ <arg file="${dirs.test_results}\${file.test_results}.xml"/>
39
+ </exec>
40
+ </target>
41
+
42
+ <target name="open_results">
43
+ <echo message="Opening results at ${path::get-full-path(files.bdddoc_results)}."/>
44
+ <exec
45
+ spawn="true"
46
+ program="${environment::get-folder-path('ProgramFiles')}\Internet Explorer\iexplore.exe"
47
+ commandline="${path::get-full-path(files.bdddoc_results)}"
48
+ >
49
+ </exec>
50
+ </target>
51
+
52
+ </project>
@@ -0,0 +1,134 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <project name="CUSTOM REPLACE COMPILE" default="go">
3
+ <!-- Project UppercuT - http://projectuppercut.org -->
4
+ <property name="build.config.settings" value="__NONE__" overwrite="false" />
5
+ <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
6
+ <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
7
+ <property name="path.to.toplevel" value=".." />
8
+ <property name="folder.build_scripts" value="build" overwrite="false" />
9
+ <property name="dirs.build_scripts" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts}" />
10
+ <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
11
+ <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}" />
12
+ <property name="folder.code_build" value="build_output" overwrite="false" />
13
+ <property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
14
+ <property name="folder.code_drop" value="code_drop" overwrite="false" />
15
+ <property name="dirs.drop" value="${dirs.current}\${path.to.toplevel}\${folder.code_drop}" overwrite="false" />
16
+ <property name="folder.app.drop" value="${project.name}" overwrite="false" />
17
+ <property name="folder.database" value="__DATABASE_FOLDER_NAME__" overwrite="false" />
18
+ <property name="folder.reports" value="${project.name}.Reports" overwrite="false" />
19
+ <property name="folder.file_server" value="file.server" overwrite="false" />
20
+ <property name="folder.environment_files" value="environment.files" overwrite="false" />
21
+ <property name="folder.deployment" value="deployment" overwrite="false" />
22
+ <property name="folder.settings" value="settings" overwrite="false" />
23
+ <property name="folder.documentation" value="docs" overwrite="false" />
24
+ <property name="language.short" value="cs" overwrite="false" />
25
+ <property name="path_to_solution" value="." overwrite="false" />
26
+ <property name="file.version" value="SolutionVersion.${language.short}" overwrite="false" />
27
+ <property name="path.file.version" value="${dirs.current}\${path.to.toplevel}\${path_to_solution}\${file.version}" overwrite="false" />
28
+ <property name="folder.source" value="product" overwrite="false" />
29
+ <property name="folder.app.drop" value="${project.name}" overwrite="false" />
30
+ <property name="project.name" value="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__" overwrite="false" />
31
+ <property name="path.project_lib" value="${dirs.build}\${folder.app.drop}\${project.name}" overwrite="false" />
32
+
33
+ <property name="dirs.lib" value="${dirs.current}\${path.to.toplevel}\lib" overwrite="false" />
34
+ <!-- exe, winexe, library or module -->
35
+ <property name="target.type" value="library" overwrite="false" />
36
+ <property name="output.type" value="exe" />
37
+ <property name="output.type" value="dll" if="${target.type=='library' or target.type=='module'}" />
38
+ <property name="debug" value="false" overwrite="false" />
39
+
40
+ <fileset id="sources.fileset.product" basedir="${path.to.toplevel}\${folder.source}\" >
41
+ <exclude name="**\*Specs.${language.short}"/>
42
+ <exclude name="**\*Spec.${language.short}"/>
43
+ <exclude name="**\*Test*.${language.short}"/>
44
+ <exclude name="**\bdd\*.*"/>
45
+ <exclude name="**\bdd*\*.*"/>
46
+ <exclude name="**\*test*\*.*"/>
47
+ <include name="**\*.${language.short}"/>
48
+ <include name="${path.file.version}"/>
49
+ </fileset>
50
+
51
+ <assemblyfileset id="references.assemblyfileset.product" basedir="${dirs.lib}\" >
52
+ <include name="references\**\*.dll"/>
53
+ </assemblyfileset>
54
+
55
+ <fileset id="sources.fileset.testing" basedir="${path.to.toplevel}\${folder.source}\" >
56
+ <include name="**\*Specs.${language.short}"/>
57
+ <include name="**\*Spec.${language.short}"/>
58
+ <include name="**\*Test*.${language.short}"/>
59
+ <include name="**\bdd\*.*"/>
60
+ <include name="**\bdd*\*.*"/>
61
+ <include name="**\*test*\*.*"/>
62
+ </fileset>
63
+
64
+ <assemblyfileset id="references.assemblyfileset.testing" basedir="${dirs.lib}\" >
65
+ <include name="tools\**\*.dll"/>
66
+ <include name="references\**\*.dll"/>
67
+ <include name="testing\**\*.dll"/>
68
+ <include name="${path.project_lib}.${output.type}"/>
69
+ </assemblyfileset>
70
+
71
+ <target name="go" depends="run_tasks" />
72
+
73
+ <target name="run_tasks" depends="compile_product, compile_test_library">
74
+ <!-- INSERT YOUR TASKS HERE OR CALL OUT TO OTHER TASKS -->
75
+ <!-- Sample provided below that you can customize -->
76
+ </target>
77
+
78
+ <target name="compile_product">
79
+ <call target="compile_product_cs" if="${language.short=='cs'}" />
80
+ <call target="compile_product_vb" if="${language.short=='vb'}" />
81
+ </target>
82
+
83
+ <target name="compile_test_library">
84
+ <call target="compile_test_library_cs" if="${language.short=='cs'}" />
85
+ <call target="compile_test_library_vb" if="${language.short=='vb'}" />
86
+ </target>
87
+
88
+ <target name="compile_product_cs">
89
+ <echo message="Compiling all C# files that are not tests to ${path.project_lib}.${output.type}." />
90
+ <csc output="${path.project_lib}.${output.type}"
91
+ target="${target.type}"
92
+ debug="${debug}"
93
+ optimize="true"
94
+ warnaserror="true"
95
+ >
96
+ <sources refid="sources.fileset.product" />
97
+ <references refid="references.assemblyfileset.product" />
98
+ </csc>
99
+ </target>
100
+
101
+ <target name="compile_test_library_cs">
102
+ <echo message="Compiling all C# files that are tests to ${path.project_lib}.tests.dll." />
103
+ <csc output="${path.project_lib}.tests.dll" target="library" debug="${debug}">
104
+ <sources refid="sources.fileset.testing" />
105
+ <references refid="references.assemblyfileset.testing" />
106
+ </csc>
107
+ </target>
108
+
109
+ <target name="compile_product_vb">
110
+ <echo message="Compiling all VB files that are not tests to ${path.project_lib}.${output.type}." />
111
+ <vbc output="${path.project_lib}.${output.type}"
112
+ target="${target.type}"
113
+ debug="${debug}"
114
+ optionoptimize="true"
115
+ optionexplicit="true"
116
+ optionstrict="true"
117
+ rootnamespace="true"
118
+ warnaserror="true"
119
+ >
120
+ <sources refid="sources.fileset.product" />
121
+ <references refid="references.assemblyfileset.product" />
122
+ </vbc>
123
+ </target>
124
+
125
+ <target name="compile_test_library_vb">
126
+ <echo message="Compiling all VB files that are tests to ${path.project_lib}.tests.dll." />
127
+ <vbc output="${path.project_lib}.tests.dll" target="library" debug="${debug}">
128
+ <sources refid="sources.fileset.testing" />
129
+ <references refid="references.assemblyfileset.testing" />
130
+ </vbc>
131
+ </target>
132
+
133
+
134
+ </project>
@@ -0,0 +1,2 @@
1
+ roundhouse.sql.Database
2
+ roundhouse.databases.*
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <project name="ILMergeBuilder" default="go">
3
+ <!-- Project UppercuT - http://projectuppercut.org -->
4
+ <property name="build.config.settings" value="__NONE__" overwrite="false" />
5
+ <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
6
+ <property name="file.current.no_extension" value="ilmerge" />
7
+ <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
8
+ <property name="path.to.toplevel" value=".." />
9
+ <property name="folder.build_scripts" value="build" overwrite="false" />
10
+ <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
11
+ <property name="dirs.build_scripts_custom" value="${dirs.current}\..\${folder.build_scripts_custom}" />
12
+ <property name="folder.code_drop" value="code_drop" overwrite="false" />
13
+ <property name="dirs.drop" value="${dirs.current}\${path.to.toplevel}\${folder.code_drop}" overwrite="false" />
14
+ <property name="folder.app.drop" value="${project.name}" overwrite="false" />
15
+
16
+ <property name="dirs.merge.from" value="${dirs.drop}\${folder.app.drop}" overwrite="false" />
17
+ <property name="dirs.merge.to" value="${dirs.drop}\merge" overwrite="false" />
18
+
19
+ <target name="go" depends="clean_out_sql_dlls" />
20
+
21
+ <target name="clean_out_sql_dlls">
22
+ <echo message="Before merging - removing the Microsoft.SqlServer dlls from ${dirs.merge.from}."/>
23
+ <delete>
24
+ <fileset basedir="${dirs.merge.from}" >
25
+ <exclude name="${file.merge.name}" />
26
+ <include name="Microsoft.SqlServer*.dll" />
27
+ </fileset>
28
+ </delete>
29
+ </target>
30
+
31
+ </project>
@@ -0,0 +1,108 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <project name="ILMergeBuilder" default="go">
3
+ <!-- Project UppercuT - http://projectuppercut.org -->
4
+ <property name="build.config.settings" value="__NONE__" overwrite="false" />
5
+ <include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
6
+ <property name="file.current.no_extension" value="ilmerge" />
7
+ <property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
8
+ <property name="path.to.toplevel" value=".." />
9
+ <property name="folder.build_scripts" value="build" overwrite="false" />
10
+ <property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
11
+ <property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}" />
12
+ <property name="folder.code_drop" value="code_drop" overwrite="false" />
13
+ <property name="dirs.drop" value="${dirs.current}\${path.to.toplevel}\${folder.code_drop}" overwrite="false" />
14
+ <property name="folder.app.drop" value="${project.name}" overwrite="false" />
15
+ <property name="dirs.lib" value="${dirs.current}\${path.to.toplevel}\lib" overwrite="false" />
16
+ <property name="dirs.ilmerge.folder" value="${dirs.lib}\ILMerge" />
17
+ <property name="app.ilmerge" value="${dirs.ilmerge.folder}\ILMerge.exe" overwrite="false" />
18
+ <property name="dirs.merge.log" value="${dirs.drop}\build_artifacts\ilmerge" />
19
+ <property name="log.merge" value="ilmerge.log" />
20
+
21
+ <property name="dirs.merge.from" value="${dirs.drop}\${folder.app.drop}" overwrite="false" />
22
+ <property name="dirs.merge.to" value="${dirs.drop}\merge" overwrite="false" />
23
+ <property name="file.internalize.ignore" value="ilmerge.internalize.ignore.txt" />
24
+ <property name="path.file.internalize.ignore" value="${dirs.build_scripts_custom}\${file.internalize.ignore}" />
25
+
26
+ <property name="file.merge.name" value="__REPLACE__" overwrite="false" />
27
+ <!-- exe winexe dll -->
28
+ <property name="merge.target.type" value="__REPLACE__" overwrite="false" />
29
+ <property name="args.ilmerge" value="/internalize /target:${merge.target.type} /out:${dirs.merge.to}\${file.merge.name} /log:${dirs.merge.log}\${log.merge} /ndebug /allowDup ${file.merge.name} " />
30
+ <property name="args.ilmerge" value="/internalize:${path.file.internalize.ignore} /target:${merge.target.type} /out:${dirs.merge.to}\${file.merge.name} /log:${dirs.merge.log}\${log.merge} /ndebug /allowDup ${file.merge.name} " if="${file::exists(path.file.internalize.ignore)}"/>
31
+
32
+ <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.build" />
33
+ <property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.build" />
34
+ <property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.build" />
35
+
36
+ <target name="go" depends="run_tasks" />
37
+
38
+ <target name="run_tasks">
39
+ <echo message="Running ${project::get-name()} tasks." />
40
+ <call target="prepare" if="${target::exists('prepare')}" />
41
+ <call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
42
+ <call target="run_normal_tasks" if="${not file::exists(file.custom.step.replace)}" />
43
+ <echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
44
+ <nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" />
45
+ <call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
46
+ </target>
47
+
48
+ <target name="run_normal_tasks"
49
+ depends="error_check, get_regular_dlls, run_ilmerge, copy_configs"
50
+ description="Running ILMerge with UppercuT default.build." />
51
+
52
+ <target name="custom_tasks_before">
53
+ <echo message="Running custom tasks if ${file.custom.step.before} exists." />
54
+ <nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="false" />
55
+ </target>
56
+
57
+ <target name="error_check">
58
+ <fail message="You must pass in the file.merge.name and the merge.target.type through the command line calling this build. Please do that and retry the build."
59
+ if="${file.merge.name=='__REPLACE__' or merge.target.type=='__REPLACE__'}" />
60
+ </target>
61
+
62
+ <target name="prepare">
63
+ <mkdir dir="${dirs.merge.log}" />
64
+ <mkdir dir="${dirs.merge.to}" />
65
+ </target>
66
+
67
+ <target name="get_regular_dlls">
68
+ <echo message="Getting output dlls based on name in directory ${path::get-full-path(dirs.merge.from)}." />
69
+ <property name="dll.names" value="" />
70
+ <foreach item="File" property="dll.filename">
71
+ <in>
72
+ <items>
73
+ <exclude name="${dirs.merge.from}\${file.merge.name}" />
74
+ <include name="${dirs.merge.from}\*.dll" />
75
+ <include name="${dirs.merge.from}\*.exe" />
76
+ </items>
77
+ </in>
78
+ <do>
79
+ <property name="dll.names" value="${dll.names + ' ' + path::get-file-name(dll.filename)}" />
80
+ </do>
81
+ </foreach>
82
+
83
+ <property name="dlls.regular" value="${dll.names}" />
84
+ <property name="args.ilmerge" value="${args.ilmerge} ${dlls.regular}" />
85
+ </target>
86
+
87
+ <target name="run_ilmerge">
88
+ <echo message="Merging the the contents of ${dirs.merge.from} into a single executable - ${dirs.merge.to}\${file.merge.name}. This will fail if all dependencies are not resolved."/>
89
+ <echo message="Running this: ${app.ilmerge} ${args.ilmerge}"/>
90
+ <exec program="${app.ilmerge}"
91
+ workingdir="${dirs.merge.from}"
92
+ commandline="${args.ilmerge}" />
93
+ </target>
94
+
95
+ <target name="copy_configs">
96
+ <copy todir="${dirs.merge.to}">
97
+ <fileset basedir="${dirs.merge.from}">
98
+ <include name="**/*.config" />
99
+ </fileset>
100
+ </copy>
101
+ </target>
102
+
103
+ <target name="custom_tasks_after">
104
+ <echo message="Running custom tasks if ${file.custom.step.after} exists." />
105
+ <nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="false" />
106
+ </target>
107
+
108
+ </project>
@@ -0,0 +1,36 @@
1
+ @echo off
2
+
3
+ ::Project UppercuT - http://projectuppercut.org
4
+
5
+ if '%2' NEQ '' goto usage
6
+ if '%3' NEQ '' goto usage
7
+ if '%1' == '/?' goto usage
8
+ if '%1' == '-?' goto usage
9
+ if '%1' == '?' goto usage
10
+ if '%1' == '/help' goto usage
11
+
12
+ SET DIR=%~d0%~p0%
13
+ SET NANT="%DIR%lib\Nant\nant.exe"
14
+ SET build.config.settings="%DIR%settings\UppercuT.config"
15
+
16
+ %NANT% %1 /f:.\build\default.build -D:build.config.settings=%build.config.settings%
17
+ if %ERRORLEVEL% NEQ 0 goto errors
18
+
19
+ SET file.merge.name="__REPLACE__"
20
+ :: choose one: library, exe, winexe
21
+ SET merge.target.type="library"
22
+ %NANT% %1 /f:.\build\ilmerge.build -D:build.config.settings=%build.config.settings% -D:file.merge.name=%file.merge.name% -D:merge.target.type=%merge.target.type%
23
+ if %ERRORLEVEL% NEQ 0 goto errors
24
+
25
+ goto finish
26
+
27
+ :usage
28
+ echo.
29
+ echo Usage: build.bat
30
+ echo.
31
+ goto finish
32
+
33
+ :errors
34
+ EXIT /B %ERRORLEVEL%
35
+
36
+ :finish
@@ -0,0 +1,37 @@
1
+ @echo off
2
+
3
+ ::Project UppercuT - http://uppercut.googlecode.com
4
+ ::No edits to this file are required - http://uppercut.pbwiki.com
5
+
6
+ if '%2' NEQ '' goto usage
7
+ if '%3' NEQ '' goto usage
8
+ if '%1' == '/?' goto usage
9
+ if '%1' == '-?' goto usage
10
+ if '%1' == '?' goto usage
11
+ if '%1' == '/help' goto usage
12
+
13
+ SET DIR=%~d0%~p0%
14
+ SET NANT="%DIR%lib\Nant\nant.exe"
15
+ SET build.config.settings="%DIR%settings\UppercuT.config"
16
+
17
+ %NANT% /f:.\build\compile.step -D:build.config.settings=%build.config.settings%
18
+
19
+ if %ERRORLEVEL% NEQ 0 goto errors
20
+
21
+ %NANT% /f:.\build\analyzers\moma.step %1 -D:build.config.settings=%build.config.settings%
22
+ %NANT% /f:.\build\analyzers\moma.step open_results -D:build.config.settings=%build.config.settings%
23
+
24
+ if %ERRORLEVEL% NEQ 0 goto errors
25
+
26
+ goto finish
27
+
28
+ :usage
29
+ echo.
30
+ echo Usage: moma.bat
31
+ echo.
32
+ goto finish
33
+
34
+ :errors
35
+ EXIT /B %ERRORLEVEL%
36
+
37
+ :finish