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
@@ -0,0 +1,103 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<project name="Open" default="go">
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
4
|
+
<!-- DO NOT EDIT THIS FILE - 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="open" />
|
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="dirs.solution" value="${dirs.current}\${path.to.toplevel}\${path_to_solution}" />
|
14
|
+
<property name="solution.path" value="${path::get-full-path(dirs.solution)}\${project.name}.sln" />
|
15
|
+
<property name="solution.path.full" value="${path::get-full-path(solution.path)}" />
|
16
|
+
<property name="app.visual_studio" value="${environment::get-folder-path('ProgramFiles')}\Common Files\Microsoft Shared\MSEnv\VSLauncher.exe" />
|
17
|
+
<property name="file.uppercut.assembly" value="uppercut.tasks.dll" />
|
18
|
+
<property name="path.uppercut.assembly" value="${dirs.current}\${file.uppercut.assembly}" />
|
19
|
+
<property name="allow.powershell.unrestricted" value="false" overwrite="false" />
|
20
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.build" />
|
21
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.build" />
|
22
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.build" />
|
23
|
+
<property name="is.replaced" value="false" />
|
24
|
+
<property name="fail.build.on.error" value="false" />
|
25
|
+
|
26
|
+
<target name="go" depends="load_uppercut_assemblies, allow_powershell_unrestricted, run_tasks" />
|
27
|
+
|
28
|
+
<target name="run_tasks">
|
29
|
+
<echo message="Running ${project::get-name()} tasks." />
|
30
|
+
<call target="prepare" if="${target::exists('prepare')}" />
|
31
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
32
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
33
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
34
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
35
|
+
</target>
|
36
|
+
|
37
|
+
<target name="run_normal_tasks"
|
38
|
+
depends="open_visual_studio"
|
39
|
+
description="Opening Visual Studio." />
|
40
|
+
|
41
|
+
<target name="custom_tasks_before">
|
42
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
43
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
44
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
45
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
46
|
+
</exec>
|
47
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
48
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
49
|
+
</exec>
|
50
|
+
</target>
|
51
|
+
|
52
|
+
<target name="custom_tasks_replace">
|
53
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
54
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
55
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
56
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
57
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
58
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
59
|
+
</exec>
|
60
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
61
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
62
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
63
|
+
</exec>
|
64
|
+
</target>
|
65
|
+
|
66
|
+
<target name="open_visual_studio">
|
67
|
+
<echo message="Opening visual studio with solution file ${solution.path.full}."/>
|
68
|
+
<exec
|
69
|
+
spawn="true"
|
70
|
+
basedir="${dirs.solution}"
|
71
|
+
program="${app.visual_studio}"
|
72
|
+
commandline="${solution.path.full}"
|
73
|
+
>
|
74
|
+
</exec>
|
75
|
+
</target>
|
76
|
+
|
77
|
+
<target name="custom_tasks_after">
|
78
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
79
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
80
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
81
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
82
|
+
</exec>
|
83
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
84
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
85
|
+
</exec>
|
86
|
+
</target>
|
87
|
+
|
88
|
+
<target name="load_uppercut_assemblies">
|
89
|
+
<loadtasks assembly="${path.uppercut.assembly}" if="${file::exists(path.uppercut.assembly)}" />
|
90
|
+
</target>
|
91
|
+
|
92
|
+
<target name="allow_powershell_unrestricted">
|
93
|
+
<!-- powershell 1.0 -->
|
94
|
+
<exec program="powershell.exe" if="${allow.powershell.unrestricted}" failonerror="false">
|
95
|
+
<arg value="set-executionpolicy unrestricted" />
|
96
|
+
</exec>
|
97
|
+
<!-- powershell 2.0 -->
|
98
|
+
<exec program="powershell.exe" if="${allow.powershell.unrestricted}" failonerror="false">
|
99
|
+
<arg value="set-executionpolicy unrestricted -force -scope CurrentUser" />
|
100
|
+
</exec>
|
101
|
+
</target>
|
102
|
+
|
103
|
+
</project>
|
@@ -0,0 +1,234 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<project name="PackageBuilder" default="go">
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
4
|
+
<!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom folder with file by the same name - find out more at http://uppercut.pbwiki.com -->
|
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="package" />
|
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="folder.code_drop" value="code_drop" overwrite="false" />
|
16
|
+
<property name="dirs.drop" value="${dirs.current}\${path.to.toplevel}\${folder.code_drop}" overwrite="false" />
|
17
|
+
<property name="folder.build_artifacts" value="build_artifacts" overwrite="false" />
|
18
|
+
<property name="folder.app.drop" value="${project.name}" overwrite="false" />
|
19
|
+
<property name="folder.database" value="__DATABASE_FOLDER_NAME__" overwrite="false" />
|
20
|
+
<property name="folder.reports" value="${project.name}.Reports" overwrite="false" />
|
21
|
+
<property name="folder.file_server" value="file.server" overwrite="false" />
|
22
|
+
<property name="folder.environment_files" value="environment.files" overwrite="false" />
|
23
|
+
<property name="folder.deployment" value="deployment" overwrite="false" />
|
24
|
+
<property name="folder.settings" value="settings" overwrite="false" />
|
25
|
+
<property name="folder.documentation" value="docs" overwrite="false" />
|
26
|
+
<property name="file.build_info" value="${dirs.build}\_BuildInfo.xml" />
|
27
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
|
28
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
|
29
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
|
30
|
+
<property name="is.replaced" value="false" />
|
31
|
+
<property name="fail.build.on.error" value="true" />
|
32
|
+
|
33
|
+
<target name="go" depends="run_tasks" />
|
34
|
+
|
35
|
+
<target name="run_tasks">
|
36
|
+
<echo message="Running ${project::get-name()} tasks." />
|
37
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
38
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
39
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
40
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
41
|
+
</target>
|
42
|
+
|
43
|
+
<target name="run_normal_tasks"
|
44
|
+
depends="prepare, build_artifacts, app, web, db, reports, file_server, environment_files, deployment_scripts, settings_files, build_deployment_files, build_info_file, documentation"
|
45
|
+
description="Packaging project." />
|
46
|
+
|
47
|
+
<target name="prepare">
|
48
|
+
<echo message="Removing and adding ${dirs.drop}."/>
|
49
|
+
<delete dir="${dirs.drop}" failonerror="false" />
|
50
|
+
<mkdir dir="${dirs.drop}" />
|
51
|
+
</target>
|
52
|
+
|
53
|
+
<target name="custom_tasks_before">
|
54
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
55
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
56
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
57
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
58
|
+
</exec>
|
59
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
60
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
61
|
+
</exec>
|
62
|
+
</target>
|
63
|
+
|
64
|
+
<target name="custom_tasks_replace">
|
65
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
66
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
67
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
68
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
69
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
70
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
71
|
+
</exec>
|
72
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
73
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
74
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
75
|
+
</exec>
|
76
|
+
</target>
|
77
|
+
|
78
|
+
<target name="build_artifacts">
|
79
|
+
<echo message="Packaging build artifacts (such as test results) to ${dirs.drop}\${folder.build_artifacts}."/>
|
80
|
+
<copy todir="${dirs.drop}\${folder.build_artifacts}">
|
81
|
+
<fileset basedir="${dirs.build}\${folder.build_artifacts}">
|
82
|
+
<include name="**/*.*" />
|
83
|
+
</fileset>
|
84
|
+
</copy>
|
85
|
+
</target>
|
86
|
+
|
87
|
+
<target name="app">
|
88
|
+
<echo message="Packaging application items to ${dirs.drop}\${folder.app.drop}."/>
|
89
|
+
<copy todir="${dirs.drop}\${folder.app.drop}">
|
90
|
+
<fileset basedir="${dirs.build}\${folder.app.drop}">
|
91
|
+
<exclude name="${folder.database}\**" />
|
92
|
+
<exclude name="${folder.reports}\**" />
|
93
|
+
<exclude name="${folder.deployment}\**" />
|
94
|
+
<exclude name="${folder.documentation}\**" />
|
95
|
+
<exclude name="${folder.environment_files}\**" />
|
96
|
+
<exclude name="${folder.file_server}\**" />
|
97
|
+
<exclude name="${folder.build_artifacts}\**" />
|
98
|
+
<exclude name="*_Published*\**" />
|
99
|
+
<exclude name="*Test*\**" />
|
100
|
+
<exclude name="*.Specs*\**" />
|
101
|
+
<exclude name="*bdddoc.*" />
|
102
|
+
<exclude name="*developwithpassion.bdd.*" />
|
103
|
+
<exclude name="*nunit.*" />
|
104
|
+
<exclude name="*QuickGraph*.*" />
|
105
|
+
<exclude name="*MbUnit*.*" />
|
106
|
+
<exclude name="*Rhino.Mocks.*" />
|
107
|
+
<exclude name="*Refly.*" />
|
108
|
+
<exclude name="**\*.template" />
|
109
|
+
<include name="**/*.*" />
|
110
|
+
</fileset>
|
111
|
+
</copy>
|
112
|
+
</target>
|
113
|
+
|
114
|
+
<target name="web">
|
115
|
+
<echo message="Packaging website to ${dirs.drop}\_PublishedWebSites."/>
|
116
|
+
<copy todir="${dirs.drop}\_PublishedWebSites">
|
117
|
+
<fileset basedir="${dirs.build}\${folder.app.drop}\_PublishedWebSites">
|
118
|
+
<exclude name="**\*.template" />
|
119
|
+
<include name="**/*.*" />
|
120
|
+
</fileset>
|
121
|
+
</copy>
|
122
|
+
</target>
|
123
|
+
|
124
|
+
<target name="db">
|
125
|
+
<echo message="Packaging database files to ${dirs.drop}\${folder.database}."/>
|
126
|
+
<copy todir="${dirs.drop}\${folder.database}">
|
127
|
+
<fileset basedir="${dirs.build}\${folder.database}">
|
128
|
+
<exclude name="**\*.template" />
|
129
|
+
<include name="**/*.*" />
|
130
|
+
</fileset>
|
131
|
+
</copy>
|
132
|
+
</target>
|
133
|
+
|
134
|
+
<target name="reports">
|
135
|
+
<echo message="Packaging reports to ${dirs.drop}\${folder.reports}."/>
|
136
|
+
<copy todir="${dirs.drop}\${folder.reports}">
|
137
|
+
<fileset basedir="${dirs.current}\${path.to.toplevel}\${folder.reports}">
|
138
|
+
<exclude name="**\*.template" />
|
139
|
+
<include name="**/*.*" />
|
140
|
+
</fileset>
|
141
|
+
</copy>
|
142
|
+
</target>
|
143
|
+
|
144
|
+
<target name="file_server">
|
145
|
+
<echo message="Packaging file server items to ${dirs.drop}\${folder.file_server}."/>
|
146
|
+
<copy todir="${dirs.drop}\${folder.file_server}">
|
147
|
+
<fileset basedir="${dirs.current}\${path.to.toplevel}\${folder.file_server}">
|
148
|
+
<exclude name="**\*.template" />
|
149
|
+
<include name="**/*.*" />
|
150
|
+
</fileset>
|
151
|
+
</copy>
|
152
|
+
|
153
|
+
<echo message="Packaging output fileserver items to ${dirs.drop}\FileServer."/>
|
154
|
+
<copy todir="${dirs.drop}\FileServer">
|
155
|
+
<fileset basedir="${dirs.build}\${folder.app.drop}\FileServer">
|
156
|
+
<include name="**/**" />
|
157
|
+
</fileset>
|
158
|
+
</copy>
|
159
|
+
</target>
|
160
|
+
|
161
|
+
<target name="environment_files">
|
162
|
+
<echo message="Packaging environment files to ${dirs.drop}\${folder.environment_files}."/>
|
163
|
+
<copy todir="${dirs.drop}\${folder.environment_files}">
|
164
|
+
<fileset basedir="${dirs.build}\${folder.environment_files}">
|
165
|
+
<include name="**/*.*" />
|
166
|
+
</fileset>
|
167
|
+
</copy>
|
168
|
+
</target>
|
169
|
+
|
170
|
+
<target name="deployment_scripts">
|
171
|
+
<echo message="Packaging deployment scripts to ${dirs.drop}\${folder.deployment}."/>
|
172
|
+
<copy todir="${dirs.drop}\${folder.deployment}">
|
173
|
+
<fileset basedir="${dirs.current}\${path.to.toplevel}\${folder.deployment}">
|
174
|
+
<exclude name="**\*.template" />
|
175
|
+
<exclude name="templates\**" />
|
176
|
+
<include name="**/*.*" />
|
177
|
+
</fileset>
|
178
|
+
</copy>
|
179
|
+
</target>
|
180
|
+
|
181
|
+
<target name="settings_files">
|
182
|
+
<echo message="Packaging settings files to ${dirs.drop}\${folder.settings}."/>
|
183
|
+
<copy todir="${dirs.drop}\${folder.settings}">
|
184
|
+
<fileset basedir="${dirs.current}\${path.to.toplevel}\${folder.settings}">
|
185
|
+
<include name="**/*.settings" />
|
186
|
+
</fileset>
|
187
|
+
</copy>
|
188
|
+
</target>
|
189
|
+
|
190
|
+
<target name="build_deployment_files">
|
191
|
+
<echo message="Building Deployment Files."/>
|
192
|
+
<nant buildfile="deploymentBuilder.step" inheritall="true" failonerror="false" />
|
193
|
+
</target>
|
194
|
+
|
195
|
+
<target name="build_info_file">
|
196
|
+
<echo message="Copying ${file.build_info} to ${folder.build_artifacts}, ${folder.app.drop}, and ${folder.deployment} in the ${dirs.drop} folder."/>
|
197
|
+
|
198
|
+
<copy
|
199
|
+
file="${file.build_info}"
|
200
|
+
todir="${dirs.drop}\${folder.build_artifacts}"
|
201
|
+
/>
|
202
|
+
|
203
|
+
<copy
|
204
|
+
file="${file.build_info}"
|
205
|
+
todir="${dirs.drop}\${folder.app.drop}"
|
206
|
+
/>
|
207
|
+
|
208
|
+
<copy
|
209
|
+
file="${file.build_info}"
|
210
|
+
todir="${dirs.drop}\${folder.deployment}"
|
211
|
+
/>
|
212
|
+
</target>
|
213
|
+
|
214
|
+
<target name="documentation">
|
215
|
+
<echo message="Packaging documentation files to ${dirs.drop}\${folder.documentation}."/>
|
216
|
+
<copy todir="${dirs.drop}\${folder.documentation}">
|
217
|
+
<fileset basedir="${dirs.build}\${folder.documentation}">
|
218
|
+
<include name="**/*.*" />
|
219
|
+
</fileset>
|
220
|
+
</copy>
|
221
|
+
</target>
|
222
|
+
|
223
|
+
<target name="custom_tasks_after">
|
224
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
225
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
226
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
227
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
228
|
+
</exec>
|
229
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
230
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
231
|
+
</exec>
|
232
|
+
</target>
|
233
|
+
|
234
|
+
</project>
|
@@ -0,0 +1,81 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<project name="PolicyEnforcer" default="go">
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
4
|
+
<!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom folder with file by the same name - find out more at http://uppercut.pbwiki.com -->
|
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="policyChecks" />
|
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.documentation" value="docs" overwrite="false" />
|
14
|
+
<property name="dirs.docs" value="${path::get-full-path(dirs.current)}\${path.to.toplevel}\${folder.documentation}" />
|
15
|
+
<property name="project.name" value="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__" overwrite="false" />
|
16
|
+
<property name="file.installation_document" value="${dirs.docs}\Installation\Install.docx" overwrite="false" />
|
17
|
+
<property name="fail.if_no_installation_document" value="false" overwrite="false" />
|
18
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
|
19
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
|
20
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
|
21
|
+
<property name="is.replaced" value="false" />
|
22
|
+
<property name="fail.build.on.error" value="true" />
|
23
|
+
|
24
|
+
<target name="go" depends="run_tasks" />
|
25
|
+
|
26
|
+
<target name="run_tasks">
|
27
|
+
<echo message="Running ${project::get-name()} tasks." />
|
28
|
+
<call target="prepare" if="${target::exists('prepare')}" />
|
29
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
30
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
31
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
32
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
33
|
+
</target>
|
34
|
+
|
35
|
+
<target name="run_normal_tasks"
|
36
|
+
depends="install_document_policy"
|
37
|
+
description="Enforcing active rules/policies." />
|
38
|
+
|
39
|
+
<target name="custom_tasks_before">
|
40
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
41
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
42
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
43
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
44
|
+
</exec>
|
45
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
46
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
47
|
+
</exec>
|
48
|
+
</target>
|
49
|
+
|
50
|
+
<target name="custom_tasks_replace">
|
51
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
52
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
53
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
54
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
55
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
56
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
57
|
+
</exec>
|
58
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
59
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
60
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
61
|
+
</exec>
|
62
|
+
</target>
|
63
|
+
|
64
|
+
<target name="install_document_policy">
|
65
|
+
<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}" />
|
66
|
+
<fail message="You must provide an installation document as a matter of policy."
|
67
|
+
if="${fail.if_no_installation_document == 'true' and not file::exists(file.installation_document)}" />
|
68
|
+
</target>
|
69
|
+
|
70
|
+
<target name="custom_tasks_after">
|
71
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
72
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
73
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
74
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
75
|
+
</exec>
|
76
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
77
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
78
|
+
</exec>
|
79
|
+
</target>
|
80
|
+
|
81
|
+
</project>
|
@@ -0,0 +1,107 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<project name="AssemblyDropper" default="go">
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
4
|
+
<!-- DO NOT EDIT THIS FILE - This moves output files from your project to a folder to be consumed by other applications through something like externals - 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="updateAssemblies" />
|
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}\..\${folder.build_scripts_custom}" />
|
13
|
+
<property name="folder.code_drop" value="code_drop" overwrite="false" />
|
14
|
+
<property name="dirs.drop" value="${dirs.current}\${path.to.toplevel}\${folder.code_drop}" overwrite="false" />
|
15
|
+
<property name="folder.app.drop" value="${project.name}" overwrite="false" />
|
16
|
+
<property name="project.name" value="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__" overwrite="false" />
|
17
|
+
<property name="file.uppercut.assembly" value="uppercut.tasks.dll" />
|
18
|
+
<property name="path.uppercut.assembly" value="${dirs.current}\${file.uppercut.assembly}" />
|
19
|
+
<property name="dirs.assemblies" value="${dirs.current}\${path.to.toplevel}\assemblies" overwrite="false" />
|
20
|
+
<property name="allow.powershell.unrestricted" value="false" overwrite="false" />
|
21
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.build" />
|
22
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.build" />
|
23
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.build" />
|
24
|
+
<property name="is.replaced" value="false" />
|
25
|
+
<property name="fail.build.on.error" value="true" />
|
26
|
+
|
27
|
+
<target name="go" depends="load_uppercut_assemblies, allow_powershell_unrestricted, run_tasks" />
|
28
|
+
|
29
|
+
<target name="run_tasks">
|
30
|
+
<echo message="Running ${project::get-name()} tasks." />
|
31
|
+
<call target="prepare" if="${target::exists('prepare')}" />
|
32
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
33
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
34
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
35
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
36
|
+
</target>
|
37
|
+
|
38
|
+
<target name="run_normal_tasks"
|
39
|
+
depends="error_check, update_assemblies"
|
40
|
+
description="Moving assemblies to make available for Externals." />
|
41
|
+
|
42
|
+
<target name="custom_tasks_before">
|
43
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
44
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
45
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
46
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
47
|
+
</exec>
|
48
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
49
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
50
|
+
</exec>
|
51
|
+
</target>
|
52
|
+
|
53
|
+
<target name="custom_tasks_replace">
|
54
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
55
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
56
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
57
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
58
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
59
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
60
|
+
</exec>
|
61
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
62
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
63
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
64
|
+
</exec>
|
65
|
+
</target>
|
66
|
+
|
67
|
+
<target name="error_check">
|
68
|
+
<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\Uppercut.config"
|
69
|
+
if="${project.name=='__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__'}" />
|
70
|
+
</target>
|
71
|
+
|
72
|
+
<target name="update_assemblies">
|
73
|
+
<echo message="Moving files to ${dirs.assemblies}." />
|
74
|
+
<copy todir="${dirs.assemblies}">
|
75
|
+
<fileset basedir="${dirs.drop}\${folder.app.drop}">
|
76
|
+
<include name="**/*.*" />
|
77
|
+
</fileset>
|
78
|
+
</copy>
|
79
|
+
</target>
|
80
|
+
|
81
|
+
<target name="custom_tasks_after">
|
82
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
83
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
84
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
85
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
86
|
+
</exec>
|
87
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
88
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
89
|
+
</exec>
|
90
|
+
</target>
|
91
|
+
|
92
|
+
<target name="load_uppercut_assemblies">
|
93
|
+
<loadtasks assembly="${path.uppercut.assembly}" if="${file::exists(path.uppercut.assembly)}" />
|
94
|
+
</target>
|
95
|
+
|
96
|
+
<target name="allow_powershell_unrestricted">
|
97
|
+
<!-- powershell 1.0 -->
|
98
|
+
<exec program="powershell.exe" if="${allow.powershell.unrestricted}" failonerror="false">
|
99
|
+
<arg value="set-executionpolicy unrestricted" />
|
100
|
+
</exec>
|
101
|
+
<!-- powershell 2.0 -->
|
102
|
+
<exec program="powershell.exe" if="${allow.powershell.unrestricted}" failonerror="false">
|
103
|
+
<arg value="set-executionpolicy unrestricted -force -scope CurrentUser" />
|
104
|
+
</exec>
|
105
|
+
</target>
|
106
|
+
|
107
|
+
</project>
|