uppercutbuild 0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/NDepend.xml +251 -0
- data/lib/build.bat +32 -0
- data/lib/build/Castle.Core.dll +0 -0
- data/lib/build/Castle.DynamicProxy2.dll +0 -0
- data/lib/build/Castle.MicroKernel.dll +0 -0
- data/lib/build/Castle.Windsor.dll +0 -0
- data/lib/build/UppercuT.xml +5 -0
- data/lib/build/analyze.step +78 -0
- data/lib/build/analyzers/gallio.test.step +145 -0
- data/lib/build/analyzers/mbunit2.test.step +146 -0
- data/lib/build/analyzers/moma.step +143 -0
- data/lib/build/analyzers/ncover.step +186 -0
- data/lib/build/analyzers/ndepend.step +95 -0
- data/lib/build/analyzers/nitriq.step +116 -0
- data/lib/build/analyzers/nunit.test.step +172 -0
- data/lib/build/analyzers/test.step +99 -0
- data/lib/build/compile.step +178 -0
- data/lib/build/customize.bat +41 -0
- data/lib/build/customize.build +76 -0
- data/lib/build/customizers/item.template +50 -0
- data/lib/build/default.build +164 -0
- data/lib/build/deploymentBuilder.step +103 -0
- data/lib/build/environmentBuilder.step +119 -0
- data/lib/build/generateBuildInfo.step +106 -0
- data/lib/build/ilmerge.build +174 -0
- data/lib/build/open.build +103 -0
- data/lib/build/package.step +234 -0
- data/lib/build/policyChecks.step +81 -0
- data/lib/build/updateAssemblies.build +107 -0
- data/lib/build/uppercut.dll +0 -0
- data/lib/build/uppercut.tasks.dll +0 -0
- data/lib/build/versionBuilder.step +148 -0
- data/lib/build/versioners/git.step +106 -0
- data/lib/build/versioners/hg.step +106 -0
- data/lib/build/versioners/svn.step +112 -0
- data/lib/build/versioners/tfs.step +104 -0
- data/lib/build/zip.build +162 -0
- data/lib/deployment/scripts/database.deploy +37 -0
- data/lib/deployment/templates/AppDeployment.bat +9 -0
- data/lib/deployment/templates/DBDeployment.RESTORE.bat +9 -0
- data/lib/deployment/templates/DBDeployment.bat +9 -0
- data/lib/lib/MbUnit2/MbUnit.AddIn.dll +0 -0
- data/lib/lib/MbUnit2/MbUnit.Cons.exe +0 -0
- data/lib/lib/MbUnit2/MbUnit.Cons.exe.config +12 -0
- data/lib/lib/MbUnit2/MbUnit.Framework.2.0.dll +0 -0
- data/lib/lib/MbUnit2/MbUnit.Framework.XML +6929 -0
- data/lib/lib/MbUnit2/MbUnit.Framework.dll +0 -0
- data/lib/lib/MbUnit2/MbUnit.GUI.exe +0 -0
- data/lib/lib/MbUnit2/MbUnit.GUI.exe.config +14 -0
- data/lib/lib/MbUnit2/MbUnit.MSBuild.Tasks.dll +0 -0
- data/lib/lib/MbUnit2/NAnt.Core.dll +0 -0
- data/lib/lib/MbUnit2/NGraphviz.Helpers.dll +0 -0
- data/lib/lib/MbUnit2/NGraphviz.Layout.dll +0 -0
- data/lib/lib/MbUnit2/NGraphviz.dll +0 -0
- data/lib/lib/MbUnit2/QuickGraph.Algorithms.Graphviz.dll +0 -0
- data/lib/lib/MbUnit2/QuickGraph.Algorithms.dll +0 -0
- data/lib/lib/MbUnit2/QuickGraph.dll +0 -0
- data/lib/lib/MbUnit2/Refly.dll +0 -0
- data/lib/lib/MbUnit2/TestDriven.Framework.dll +0 -0
- data/lib/lib/MbUnit2/TestFu.XML +1932 -0
- data/lib/lib/MbUnit2/TestFu.dll +0 -0
- data/lib/lib/MbUnit2/XsdTidy.exe +0 -0
- data/lib/lib/MoMA/Definitions/2.4.0.1-defs.zip +0 -0
- data/lib/lib/MoMA/ICSharpCode.SharpZipLib.dll +0 -0
- data/lib/lib/MoMA/MoMA.Analyzer.dll +0 -0
- data/lib/lib/MoMA/MoMA.exe +0 -0
- data/lib/lib/MoMA/Mono.Cecil.dll +0 -0
- data/lib/lib/MoMA/Reports/Media/fail.png +0 -0
- data/lib/lib/MoMA/Reports/Media/minus.png +0 -0
- data/lib/lib/MoMA/Reports/Media/moma.css +117 -0
- data/lib/lib/MoMA/Reports/Media/moma.js +17 -0
- data/lib/lib/MoMA/Reports/Media/pass.png +0 -0
- data/lib/lib/MoMA/Reports/Media/plus.png +0 -0
- data/lib/lib/MoMA/Resources/button_ok.png +0 -0
- data/lib/lib/MoMA/Resources/dialog-warning.png +0 -0
- data/lib/lib/MoMA/Resources/dialogback.png +0 -0
- data/lib/lib/MoMA/Resources/list-add.png +0 -0
- data/lib/lib/MoMA/Resources/list-directory.png +0 -0
- data/lib/lib/MoMA/Resources/list-remove.png +0 -0
- data/lib/lib/MoMA/Resources/monoback.png +0 -0
- data/lib/lib/MoMA/Resources/spinner.gif +0 -0
- data/lib/lib/NAnt/CollectionGen.dll +0 -0
- data/lib/lib/NAnt/Interop.MsmMergeTypeLib.dll +0 -0
- data/lib/lib/NAnt/Interop.StarTeam.dll +0 -0
- data/lib/lib/NAnt/Interop.WindowsInstaller.dll +0 -0
- data/lib/lib/NAnt/MSITaskErrors.mst +0 -0
- data/lib/lib/NAnt/MSITaskTemplate.msi +0 -0
- data/lib/lib/NAnt/MSMTaskErrors.mst +0 -0
- data/lib/lib/NAnt/MSMTaskTemplate.msm +0 -0
- data/lib/lib/NAnt/MbUnit.Framework.dll +0 -0
- data/lib/lib/NAnt/MbUnit.Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.CompressionTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.Contrib.Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.Core.dll +0 -0
- data/lib/lib/NAnt/NAnt.DotNetTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.MSNetTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.NUnit.dll +0 -0
- data/lib/lib/NAnt/NAnt.NUnit1Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.NUnit2Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.SourceControlTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.VSNetTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.VisualCppTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.Win32Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.exe +0 -0
- data/lib/lib/NAnt/NAnt.exe.config +2126 -0
- data/lib/lib/NAnt/NCoverExplorer.NAntTasks.dll +0 -0
- data/lib/lib/NAnt/NDepend.Build.NAntTasks.dll +0 -0
- data/lib/lib/NAnt/NDoc.Documenter.NAnt.dll +0 -0
- data/lib/lib/NAnt/QuickGraph.Algorithms.dll +0 -0
- data/lib/lib/NAnt/QuickGraph.dll +0 -0
- data/lib/lib/NAnt/SLiNgshoT.Core.dll +0 -0
- data/lib/lib/NAnt/SLiNgshoT.exe +0 -0
- data/lib/lib/NAnt/SourceSafe.Interop.dll +0 -0
- data/lib/lib/NAnt/ThoughtWorks.CruiseControl.MSBuild.dll +0 -0
- data/lib/lib/NAnt/extensions/common/2.0/NAnt.MSBuild.dll +0 -0
- data/lib/lib/NAnt/extensions/common/2.0/NAnt.MSBuild.xml +36 -0
- data/lib/lib/NAnt/lib/common/1.1/nunit-console-runner.dll +0 -0
- data/lib/lib/NAnt/lib/common/1.1/nunit-console.exe +0 -0
- data/lib/lib/NAnt/lib/common/1.1/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/common/1.1/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/common/1.1/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/common/2.0/nunit-console-runner.dll +0 -0
- data/lib/lib/NAnt/lib/common/2.0/nunit-console.exe +0 -0
- data/lib/lib/NAnt/lib/common/2.0/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/common/2.0/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/common/2.0/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/ICSharpCode.SharpCvsLib.Console.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/ICSharpCode.SharpCvsLib.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/ICSharpCode.SharpZipLib.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/NUnitCore.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/nunit-console-runner.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/nunit-console.exe +0 -0
- data/lib/lib/NAnt/lib/net/1.0/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/nunit.util.dll +0 -0
- data/lib/lib/NAnt/log4net.dll +0 -0
- data/lib/lib/NAnt/scvs.exe +0 -0
- data/lib/lib/NCover/ActiproEULA.html +287 -0
- data/lib/lib/NCover/ActiproSoftware.Shared.Net11.dll +0 -0
- data/lib/lib/NCover/ActiproSoftware.SyntaxEditor.Net11.dll +0 -0
- data/lib/lib/NCover/ActiproSoftware.WinUICore.Net11.dll +0 -0
- data/lib/lib/NCover/CommandBars.dll +0 -0
- data/lib/lib/NCover/ConsoleConfig.xsd +123 -0
- data/lib/lib/NCover/ConsoleExample.config +94 -0
- data/lib/lib/NCover/CoverLib.dll +0 -0
- data/lib/lib/NCover/Coverage.xsl +339 -0
- data/lib/lib/NCover/CoverageReport.xsl +468 -0
- data/lib/lib/NCover/ICSharpCode.TextEditor.dll +0 -0
- data/lib/lib/NCover/LicencePersonal.rtf +334 -0
- data/lib/lib/NCover/MSVCP80.dll +0 -0
- data/lib/lib/NCover/MSVCR80.dll +0 -0
- data/lib/lib/NCover/Microsoft.VC80.CRT.manifest +8 -0
- data/lib/lib/NCover/NCover.Console.exe +0 -0
- data/lib/lib/NCover/NCover.Console.exe.config +6 -0
- data/lib/lib/NCover/NCover.Framework.dll +0 -0
- data/lib/lib/NCover/NCoverExplorer.Console.exe +0 -0
- data/lib/lib/NCover/NCoverExplorer.Core.dll +0 -0
- data/lib/lib/NCover/NCoverExplorer.NCoverRunner.dll +0 -0
- data/lib/lib/NCover/NCoverExplorer.WinForms.dll +0 -0
- data/lib/lib/NCover/NCoverExplorer.exe +0 -0
- data/lib/lib/NCover/NCoverExplorer.exe.config +8 -0
- data/lib/lib/NCover/NCoverExplorerFAQ.html +303 -0
- data/lib/lib/NCover/NCoverExplorerReleaseNotes.html +874 -0
- data/lib/lib/NCover/NCoverFAQ.html +429 -0
- data/lib/lib/NCover/VC80CRT.MAN +15 -0
- data/lib/lib/NCover/license.txt +299 -0
- data/lib/lib/NUnit/NUnitTests.config +84 -0
- data/lib/lib/NUnit/NUnitTests.nunit +14 -0
- data/lib/lib/NUnit/agent.conf +4 -0
- data/lib/lib/NUnit/agent.log.conf +18 -0
- data/lib/lib/NUnit/framework/nunit.framework.dll +0 -0
- data/lib/lib/NUnit/framework/nunit.framework.xml +10113 -0
- data/lib/lib/NUnit/framework/nunit.mocks.dll +0 -0
- data/lib/lib/NUnit/framework/pnunit.framework.dll +0 -0
- data/lib/lib/NUnit/launcher.log.conf +18 -0
- data/lib/lib/NUnit/lib/Failure.png +0 -0
- data/lib/lib/NUnit/lib/Ignored.png +0 -0
- data/lib/lib/NUnit/lib/Inconclusive.png +0 -0
- data/lib/lib/NUnit/lib/Skipped.png +0 -0
- data/lib/lib/NUnit/lib/Success.png +0 -0
- data/lib/lib/NUnit/lib/fit.dll +0 -0
- data/lib/lib/NUnit/lib/log4net.dll +0 -0
- data/lib/lib/NUnit/lib/nunit-console-runner.dll +0 -0
- data/lib/lib/NUnit/lib/nunit-gui-runner.dll +0 -0
- data/lib/lib/NUnit/lib/nunit.core.dll +0 -0
- data/lib/lib/NUnit/lib/nunit.core.interfaces.dll +0 -0
- data/lib/lib/NUnit/lib/nunit.fixtures.dll +0 -0
- data/lib/lib/NUnit/lib/nunit.uiexception.dll +0 -0
- data/lib/lib/NUnit/lib/nunit.uikit.dll +0 -0
- data/lib/lib/NUnit/lib/nunit.util.dll +0 -0
- data/lib/lib/NUnit/nunit-agent-x86.exe +0 -0
- data/lib/lib/NUnit/nunit-agent-x86.exe.config +76 -0
- data/lib/lib/NUnit/nunit-agent.exe +0 -0
- data/lib/lib/NUnit/nunit-agent.exe.config +76 -0
- data/lib/lib/NUnit/nunit-console-x86.exe +0 -0
- data/lib/lib/NUnit/nunit-console-x86.exe.config +76 -0
- data/lib/lib/NUnit/nunit-console.exe +0 -0
- data/lib/lib/NUnit/nunit-console.exe.config +76 -0
- data/lib/lib/NUnit/nunit-x86.exe +0 -0
- data/lib/lib/NUnit/nunit-x86.exe.config +91 -0
- data/lib/lib/NUnit/nunit.exe +0 -0
- data/lib/lib/NUnit/nunit.exe.config +91 -0
- data/lib/lib/NUnit/nunit.framework.dll +0 -0
- data/lib/lib/NUnit/pnunit-agent.exe +0 -0
- data/lib/lib/NUnit/pnunit-agent.exe.config +77 -0
- data/lib/lib/NUnit/pnunit-launcher.exe +0 -0
- data/lib/lib/NUnit/pnunit-launcher.exe.config +77 -0
- data/lib/lib/NUnit/pnunit.framework.dll +0 -0
- data/lib/lib/NUnit/pnunit.tests.dll +0 -0
- data/lib/lib/NUnit/runpnunit.bat +2 -0
- data/lib/lib/NUnit/test.conf +24 -0
- data/lib/lib/NUnit/tests/loadtest-assembly.dll +0 -0
- data/lib/lib/NUnit/tests/mock-assembly.dll +0 -0
- data/lib/lib/NUnit/tests/nonamespace-assembly.dll +0 -0
- data/lib/lib/NUnit/tests/nunit-console.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit-gui.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.core.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.fixtures.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.framework.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.framework.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.mocks.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.uiexception.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.uikit.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.util.tests.dll +0 -0
- data/lib/lib/NUnit/tests/test-assembly.dll +0 -0
- data/lib/lib/NUnit/tests/test-utilities.dll +0 -0
- data/lib/lib/NUnit/tests/timing-tests.dll +0 -0
- data/lib/open.bat +10 -0
- data/lib/settings/LOCAL.settings +29 -0
- data/lib/settings/SettingsFileReadMe.txt +2 -0
- data/lib/settings/UppercuT.config +73 -0
- data/lib/test.bat +38 -0
- data/lib/zip.bat +23 -0
- metadata +328 -0
Binary file
|
Binary file
|
@@ -0,0 +1,148 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<project name="VersionBuilder" default="go">
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
4
|
+
<!-- DO NOT EDIT THIS FILE - This creates the assembly file to be used by the rest of the application - find out more at http://uppercut.pbwiki.com -->
|
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="file.current.no_extension" value="versionBuilder" />
|
8
|
+
<property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
|
9
|
+
<property name="path.to.toplevel" value=".." />
|
10
|
+
<property name="folder.build_scripts" value="build" overwrite="false" />
|
11
|
+
<property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
|
12
|
+
<property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}" />
|
13
|
+
<property name="folder.code_build" value="build_output" overwrite="false" />
|
14
|
+
<property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
|
15
|
+
<property name="project.name" value="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__" overwrite="false" />
|
16
|
+
<property name="company.name" value="__COMPANY_NAME__" overwrite="false" />
|
17
|
+
<property name="path_to_solution" value="." overwrite="false" />
|
18
|
+
<property name="language.short" value="cs" overwrite="false" />
|
19
|
+
<property name="language.long" value="CSharp" />
|
20
|
+
<property name="file.version" value="SolutionVersion.${language.short}" overwrite="false" />
|
21
|
+
<property name="path.file.version" value="${dirs.current}\${path.to.toplevel}\${path_to_solution}\${file.version}" overwrite="false" />
|
22
|
+
<property name="version.major" value="1" overwrite="false" />
|
23
|
+
<property name="version.minor" value="0" overwrite="false" />
|
24
|
+
<property name="version.build" value="0" overwrite="false" />
|
25
|
+
<property name="version.revision" value="0" overwrite="false" />
|
26
|
+
<property name="version.hash" value="${version.revision}" overwrite="false" />
|
27
|
+
<property name="assembly.description" value="${project.name} is a product of ${company.name}" overwrite="false" />
|
28
|
+
<property name="assembly.clscompliant" value="true" overwrite="false" />
|
29
|
+
<property name="allow.partially_trusted_callers" value="true" overwrite="false" />
|
30
|
+
<property name="sign.project_with_key" value="false" overwrite="false" />
|
31
|
+
<property name="sign.key.use_relative_pathing" value="false" overwrite="false" />
|
32
|
+
<property name="sign.key.relative_path_from_projects" value="..\..\" overwrite="false" />
|
33
|
+
<property name="app.strongname" value="C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\sn.exe" overwrite="false" />
|
34
|
+
<property name="file.key.name.private" value="${dirs.current}\${path.to.toplevel}\${project.name}.snk" overwrite="false" />
|
35
|
+
<property name="file.key.name.private" value="${path.to.toplevel}\${project.name}.snk" overwrite="false" if="${sign.key.use_relative_pathing}" />
|
36
|
+
<property name="file.key.name.public" value="${dirs.build}\public.${project.name}.snk" overwrite="false" />
|
37
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
|
38
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
|
39
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
|
40
|
+
<property name="is.replaced" value="false" />
|
41
|
+
<property name="fail.build.on.error" value="true" />
|
42
|
+
|
43
|
+
<target name="go" depends="run_tasks" />
|
44
|
+
|
45
|
+
<target name="run_tasks">
|
46
|
+
<echo message="Running ${project::get-name()} tasks." />
|
47
|
+
<call target="prepare" if="${target::exists('prepare')}" />
|
48
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
49
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
50
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
51
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
52
|
+
</target>
|
53
|
+
|
54
|
+
<target name="run_normal_tasks"
|
55
|
+
depends="error_check, determine_language, generate_key_file, generate_assembly_info"
|
56
|
+
description="Generating Assembly File." />
|
57
|
+
|
58
|
+
<target name="custom_tasks_before">
|
59
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
60
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
61
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
62
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
63
|
+
</exec>
|
64
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
65
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
66
|
+
</exec>
|
67
|
+
</target>
|
68
|
+
|
69
|
+
<target name="custom_tasks_replace">
|
70
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
71
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
72
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
73
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
74
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
75
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
76
|
+
</exec>
|
77
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
78
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
79
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
80
|
+
</exec>
|
81
|
+
</target>
|
82
|
+
|
83
|
+
<target name="error_check">
|
84
|
+
<fail message="You must fill out the project.name, repository.path, and company.name settings in the settings\UppercuT.config file. Please do that and retry the build."
|
85
|
+
if="${project.name=='__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__' or company.name=='__COMPANY_NAME__'}" />
|
86
|
+
</target>
|
87
|
+
|
88
|
+
<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}">
|
89
|
+
<echo message="Generating a strong name key (${file.key.name.private}) using ${app.strongname} if the key file doesn't already exist." />
|
90
|
+
<exec
|
91
|
+
program="${app.strongname}"
|
92
|
+
commandline="-k ${file.key.name.private}"
|
93
|
+
if="${file::exists(app.strongname) and not file::exists(file.key.name.private)}"
|
94
|
+
/>
|
95
|
+
|
96
|
+
<exec
|
97
|
+
program="${app.strongname}"
|
98
|
+
commandline="-p ${file.key.name.private} ${file.key.name.public}"
|
99
|
+
if="${file::exists(app.strongname)}"
|
100
|
+
/>
|
101
|
+
</target>
|
102
|
+
|
103
|
+
<target name="determine_language">
|
104
|
+
<if test="${language.short=='vb'}">
|
105
|
+
<property name="language.long" value="VB" />
|
106
|
+
</if>
|
107
|
+
</target>
|
108
|
+
|
109
|
+
<target name="generate_assembly_info" description="Generate assembly info">
|
110
|
+
<echo message="Generating SolutionVersion.${language.short} with assembly version ${version.major}.${version.minor}.${version.build}.${version.revision}." />
|
111
|
+
<asminfo output="${path.file.version}" language="${language.long}">
|
112
|
+
<imports>
|
113
|
+
<import namespace="System" />
|
114
|
+
<import namespace="System.Reflection" />
|
115
|
+
<import namespace="System.Runtime.InteropServices" />
|
116
|
+
<import namespace="System.Security" />
|
117
|
+
</imports>
|
118
|
+
<attributes>
|
119
|
+
<attribute type="ComVisibleAttribute" value="false" />
|
120
|
+
<attribute type="CLSCompliantAttribute" value="${assembly.clscompliant}" />
|
121
|
+
<attribute type="AssemblyCompanyAttribute" value="${company.name}" />
|
122
|
+
<attribute type="AssemblyVersionAttribute" value="${version.major}.${version.minor}.${version.build}.${version.revision}" />
|
123
|
+
<attribute type="AssemblyFileVersionAttribute" value="${version.major}.${version.minor}.${version.build}.${version.revision}" />
|
124
|
+
<attribute type="AssemblyInformationalVersionAttribute" value="${version.major}.${version.minor}.${version.build}.${version.hash}" />
|
125
|
+
<attribute type="AssemblyTitleAttribute" value="${project.name}" />
|
126
|
+
<attribute type="AssemblyProductAttribute" value="${project.name}" />
|
127
|
+
<attribute type="AssemblyDescriptionAttribute" value="${assembly.description}" />
|
128
|
+
<attribute type="AssemblyTrademarkAttribute" value="${project.name} - ${company.name}" />
|
129
|
+
<attribute type="AssemblyCopyrightAttribute" value="Copyright ${datetime::get-year(datetime::now())} ${company.name}, - Original author or authors" />
|
130
|
+
<attribute type="AllowPartiallyTrustedCallers" if="${allow.partially_trusted_callers}" asis="true" />
|
131
|
+
<attribute type="AssemblyKeyFileAttribute" value="${file.key.name.private}" if="${sign.project_with_key and not sign.key.use_relative_pathing}" />
|
132
|
+
<attribute type="AssemblyKeyFileAttribute" value="${sign.key.relative_path_from_projects}\${path::get-file-name(file.key.name.private)}" if="${sign.project_with_key and sign.key.use_relative_pathing}" />
|
133
|
+
</attributes>
|
134
|
+
</asminfo>
|
135
|
+
</target>
|
136
|
+
|
137
|
+
<target name="custom_tasks_after">
|
138
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
139
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
140
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
141
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
142
|
+
</exec>
|
143
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
144
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
145
|
+
</exec>
|
146
|
+
</target>
|
147
|
+
|
148
|
+
</project>
|
@@ -0,0 +1,106 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<project name="SVNVersioner" default="go">
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
4
|
+
<!-- DO NOT EDIT THIS FILE - This creates the assembly file to be used by the rest of the application - find out more at http://uppercut.pbwiki.com -->
|
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="file.current.no_extension" value="git" />
|
8
|
+
<property name="path.to.toplevel" value="..\.." />
|
9
|
+
<property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
|
10
|
+
<property name="folder.build_scripts" value="build" overwrite="false" />
|
11
|
+
<property name="folder.build_scripts_custom" value="build.custom\" overwrite="false" />
|
12
|
+
<property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\versioners" />
|
13
|
+
<property name="repository.path" value="__REPOSITORY_PATH__" overwrite="false" />
|
14
|
+
<property name="version.revision" value="0" overwrite="false" />
|
15
|
+
<property name="version.hash" value="0" overwrite="false" />
|
16
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
|
17
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
|
18
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
|
19
|
+
<property name="is.replaced" value="false" />
|
20
|
+
<property name="fail.build.on.error" value="false" />
|
21
|
+
|
22
|
+
<target name="go" depends="run_tasks" />
|
23
|
+
|
24
|
+
<target name="run_tasks">
|
25
|
+
<echo message="Running ${project::get-name()} tasks." />
|
26
|
+
<call target="prepare" if="${target::exists('prepare')}" />
|
27
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
28
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
29
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
30
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
31
|
+
</target>
|
32
|
+
|
33
|
+
<target name="run_normal_tasks"
|
34
|
+
depends="get_revision, get_externally_provided_revision, set_version_environment_variable"
|
35
|
+
description="Generating Assembly File." />
|
36
|
+
|
37
|
+
<target name="custom_tasks_before">
|
38
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
39
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
40
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
41
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
42
|
+
</exec>
|
43
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
44
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
45
|
+
</exec>
|
46
|
+
</target>
|
47
|
+
|
48
|
+
<target name="custom_tasks_replace">
|
49
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
50
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
51
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
52
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
53
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
54
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
55
|
+
</exec>
|
56
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
57
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
58
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
59
|
+
</exec>
|
60
|
+
</target>
|
61
|
+
|
62
|
+
<target name="get_revision">
|
63
|
+
<echo message="Getting revision number from working directory ${directory::get-parent-directory(dirs.current)} or remotely at ${repository.path}."/>
|
64
|
+
<!-- try to update the revision -->
|
65
|
+
<getVersionFromGit
|
66
|
+
gitExecutableWithPath="git"
|
67
|
+
repoDirectory="."
|
68
|
+
repoPath="${repository.path}"
|
69
|
+
output="_revision.xml"
|
70
|
+
failonerror="false"
|
71
|
+
/>
|
72
|
+
<xmlpeek
|
73
|
+
file="_revision.xml"
|
74
|
+
xpath="/version/revision"
|
75
|
+
property="version.revision"
|
76
|
+
failonerror="false"/>
|
77
|
+
<xmlpeek
|
78
|
+
file="_revision.xml"
|
79
|
+
xpath="/version/hash"
|
80
|
+
property="version.hash"
|
81
|
+
failonerror="false"/>
|
82
|
+
<delete file="_revision.xml" failonerror="false" />
|
83
|
+
</target>
|
84
|
+
|
85
|
+
<target name="get_externally_provided_revision">
|
86
|
+
<property name="version.hash" value="${environment::get-variable('BUILD_VCS_NUMBER')}" if="${version.hash == '' and environment::variable-exists('BUILD_VCS_NUMBER')}" />
|
87
|
+
</target>
|
88
|
+
|
89
|
+
<target name="set_version_environment_variable">
|
90
|
+
<setenv name="uc.app.revision" value="${version.revision}"/>
|
91
|
+
<setenv name="uc.app.revision.hash" value="${version.hash}"/>
|
92
|
+
</target>
|
93
|
+
|
94
|
+
|
95
|
+
<target name="custom_tasks_after">
|
96
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
97
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
98
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
99
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
100
|
+
</exec>
|
101
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
102
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
103
|
+
</exec>
|
104
|
+
</target>
|
105
|
+
|
106
|
+
</project>
|
@@ -0,0 +1,106 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<project name="SVNVersioner" default="go">
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
4
|
+
<!-- DO NOT EDIT THIS FILE - This creates the assembly file to be used by the rest of the application - find out more at http://uppercut.pbwiki.com -->
|
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="file.current.no_extension" value="hg" />
|
8
|
+
<property name="path.to.toplevel" value="..\.." />
|
9
|
+
<property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
|
10
|
+
<property name="folder.build_scripts" value="build" overwrite="false" />
|
11
|
+
<property name="folder.build_scripts_custom" value="build.custom\" overwrite="false" />
|
12
|
+
<property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\versioners" />
|
13
|
+
<property name="repository.path" value="__REPOSITORY_PATH__" overwrite="false" />
|
14
|
+
<property name="version.revision" value="0" overwrite="false" />
|
15
|
+
<property name="version.hash" value="0" overwrite="false" />
|
16
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
|
17
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
|
18
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
|
19
|
+
<property name="is.replaced" value="false" />
|
20
|
+
<property name="fail.build.on.error" value="false" />
|
21
|
+
|
22
|
+
<target name="go" depends="run_tasks" />
|
23
|
+
|
24
|
+
<target name="run_tasks">
|
25
|
+
<echo message="Running ${project::get-name()} tasks." />
|
26
|
+
<call target="prepare" if="${target::exists('prepare')}" />
|
27
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
28
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
29
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
30
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
31
|
+
</target>
|
32
|
+
|
33
|
+
<target name="run_normal_tasks"
|
34
|
+
depends="get_revision, get_externally_provided_revision, set_version_environment_variable"
|
35
|
+
description="Generating Assembly File." />
|
36
|
+
|
37
|
+
<target name="custom_tasks_before">
|
38
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
39
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
40
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
41
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
42
|
+
</exec>
|
43
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
44
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
45
|
+
</exec>
|
46
|
+
</target>
|
47
|
+
|
48
|
+
<target name="custom_tasks_replace">
|
49
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
50
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
51
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
52
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
53
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
54
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
55
|
+
</exec>
|
56
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
57
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
58
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
59
|
+
</exec>
|
60
|
+
</target>
|
61
|
+
|
62
|
+
<target name="get_revision">
|
63
|
+
<echo message="Getting revision number from working directory ${directory::get-parent-directory(dirs.current)} or remotely at ${repository.path}."/>
|
64
|
+
<!-- try to update the revision -->
|
65
|
+
<getVersionFromMercurial
|
66
|
+
hgExecutableWithPath="hg"
|
67
|
+
repoDirectory="."
|
68
|
+
repoPath="${repository.path}"
|
69
|
+
output="_revision.xml"
|
70
|
+
failonerror="false"
|
71
|
+
/>
|
72
|
+
<xmlpeek
|
73
|
+
file="_revision.xml"
|
74
|
+
xpath="/version/revision"
|
75
|
+
property="version.revision"
|
76
|
+
failonerror="false"/>
|
77
|
+
<xmlpeek
|
78
|
+
file="_revision.xml"
|
79
|
+
xpath="/version/hash"
|
80
|
+
property="version.hash"
|
81
|
+
failonerror="false"/>
|
82
|
+
<delete file="_revision.xml" failonerror="false" />
|
83
|
+
</target>
|
84
|
+
|
85
|
+
<target name="get_externally_provided_revision">
|
86
|
+
<property name="version.hash" value="${environment::get-variable('BUILD_VCS_NUMBER')}" if="${version.hash == '' and environment::variable-exists('BUILD_VCS_NUMBER')}" />
|
87
|
+
</target>
|
88
|
+
|
89
|
+
<target name="set_version_environment_variable">
|
90
|
+
<setenv name="uc.app.revision" value="${version.revision}"/>
|
91
|
+
<setenv name="uc.app.revision.hash" value="${version.hash}"/>
|
92
|
+
</target>
|
93
|
+
|
94
|
+
|
95
|
+
<target name="custom_tasks_after">
|
96
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
97
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
98
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
99
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
100
|
+
</exec>
|
101
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
102
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
103
|
+
</exec>
|
104
|
+
</target>
|
105
|
+
|
106
|
+
</project>
|
@@ -0,0 +1,112 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<project name="SVNVersioner" default="go">
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
4
|
+
<!-- DO NOT EDIT THIS FILE - This creates the assembly file to be used by the rest of the application - find out more at http://uppercut.pbwiki.com -->
|
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="file.current.no_extension" value="svn" />
|
8
|
+
<property name="path.to.toplevel" value="..\.." />
|
9
|
+
<property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
|
10
|
+
<property name="folder.build_scripts" value="build" overwrite="false" />
|
11
|
+
<property name="folder.build_scripts_custom" value="build.custom\" overwrite="false" />
|
12
|
+
<property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\versioners" />
|
13
|
+
<property name="repository.path" value="__REPOSITORY_PATH__" overwrite="false" />
|
14
|
+
<property name="version.revision" value="0" overwrite="false" />
|
15
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
|
16
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
|
17
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
|
18
|
+
<property name="is.replaced" value="false" />
|
19
|
+
<property name="fail.build.on.error" value="false" />
|
20
|
+
|
21
|
+
<target name="go" depends="run_tasks" />
|
22
|
+
|
23
|
+
<target name="run_tasks">
|
24
|
+
<echo message="Running ${project::get-name()} tasks." />
|
25
|
+
<call target="prepare" if="${target::exists('prepare')}" />
|
26
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
27
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
28
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
29
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
30
|
+
</target>
|
31
|
+
|
32
|
+
<target name="run_normal_tasks"
|
33
|
+
depends="get_revision, get_externally_provided_revision, set_version_environment_variable"
|
34
|
+
description="Generating Assembly File." />
|
35
|
+
|
36
|
+
<target name="custom_tasks_before">
|
37
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
38
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
39
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
40
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
41
|
+
</exec>
|
42
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
43
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
44
|
+
</exec>
|
45
|
+
</target>
|
46
|
+
|
47
|
+
<target name="custom_tasks_replace">
|
48
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
49
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
50
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
51
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
52
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
53
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
54
|
+
</exec>
|
55
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
56
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
57
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
58
|
+
</exec>
|
59
|
+
</target>
|
60
|
+
|
61
|
+
<target name="get_revision">
|
62
|
+
<echo message="Getting revision number from working directory ${directory::get-parent-directory(dirs.current)} or remotely at ${repository.path}."/>
|
63
|
+
<!-- try to update the revision -->
|
64
|
+
<exec
|
65
|
+
program="svn"
|
66
|
+
commandline="info ${dirs.current}\${path.to.toplevel}\ --xml"
|
67
|
+
output="_revision.xml"
|
68
|
+
failonerror="false"/>
|
69
|
+
<xmlpeek
|
70
|
+
file="_revision.xml"
|
71
|
+
xpath="/info/entry/commit/@revision"
|
72
|
+
property="version.revision"
|
73
|
+
failonerror="false"/>
|
74
|
+
<exec
|
75
|
+
program="svn"
|
76
|
+
commandline="info ${repository.path} --xml"
|
77
|
+
output="_revision.xml"
|
78
|
+
failonerror="false"
|
79
|
+
if="${version.revision == '0'}"
|
80
|
+
/>
|
81
|
+
<xmlpeek
|
82
|
+
file="_revision.xml"
|
83
|
+
xpath="/info/entry/@revision"
|
84
|
+
property="version.revision"
|
85
|
+
failonerror="false"
|
86
|
+
if="${version.revision == '0'}"
|
87
|
+
/>
|
88
|
+
<delete file="_revision.xml" failonerror="false" />
|
89
|
+
</target>
|
90
|
+
|
91
|
+
<target name="get_externally_provided_revision">
|
92
|
+
<property name="version.revision" value="${environment::get-variable('BUILD_VCS_NUMBER')}" if="${version.revision == '0' and environment::variable-exists('BUILD_VCS_NUMBER')}" />
|
93
|
+
</target>
|
94
|
+
|
95
|
+
<target name="set_version_environment_variable">
|
96
|
+
<setenv name="uc.app.revision" value="${version.revision}"/>
|
97
|
+
<setenv name="uc.app.revision.hash" value="${version.revision}"/>
|
98
|
+
</target>
|
99
|
+
|
100
|
+
|
101
|
+
<target name="custom_tasks_after">
|
102
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
103
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
104
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
105
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
106
|
+
</exec>
|
107
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
108
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
109
|
+
</exec>
|
110
|
+
</target>
|
111
|
+
|
112
|
+
</project>
|