This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMantisConnect.build
58 lines (46 loc) · 1.98 KB
/
MantisConnect.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" ?>
<project name="MantisConnect" default="all">
<property name="nant.settings.currentframework" value="net-2.0" />
<echo message="Using '${nant.settings.currentframework}' framework on '${nant.platform.name}' platform."/>
<target name="build-flavour">
<if test="${not file::exists('mantisconnect.snk')}">
<copy file="mantisconnect.snk.sample" tofile="mantisconnect.snk" overwrite="false" />
</if>
<if test="${not file::exists('mantisfilters\mantisfilters.exe.config')}">
<copy file="mantisfilters\mantisfilters.exe.config.sample" tofile="mantisfilters\mantisfilters.exe.config" overwrite="false" />
</if>
<if test="${not file::exists('mantisnotify\mantisnotify.exe.config')}">
<copy file="mantisnotify\mantisnotify.exe.config.sample" tofile="mantisnotify\mantisnotify.exe.config" overwrite="false" />
</if>
<if test="${not file::exists('mantissubmit\mantissubmit.exe.config')}">
<copy file="mantissubmit\mantissubmit.exe.config.sample" tofile="mantissubmit\mantissubmit.exe.config" overwrite="false" />
</if>
<solution configuration="${flavour}" solutionfile="MantisConnect.sln" />
</target>
<target name="debug">
<property name="flavour" value="debug" />
<call target="build-flavour" />
</target>
<target name="release">
<property name="flavour" value="release" />
<call target="build-flavour" />
</target>
<target name="all">
<call target="debug" />
<call target="release" />
</target>
<target name="unittest" depends="debug">
<nunit2>
<formatter type="Plain" />
<test assemblyname="UnitTests\bin\debug\Futureware.MantisConnect.UnitTests.dll" />
</nunit2>
</target>
<target name="all_using_dotnetframework">
<echo message="Using '${nant.settings.currentframework}' framework on '${nant.platform.name}' platform."/>
<call target="all" />
</target>
<target name="portability">
<property name="nant.settings.currentframework" value="net-2.0" />
<call target="all_using_dotnetframework" />
</target>
</project>