-
Notifications
You must be signed in to change notification settings - Fork 225
/
docPrep.build
45 lines (35 loc) · 2.14 KB
/
docPrep.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
<?xml version="1.0" encoding="utf-8"?>
<project name="docGenerator" default="all" xmlns="http://nant.sourceforge.net/release/0.92/nant.xsd">
<property name="build.configuration" overwrite="false" value="Debug" />
<property name="build.target" overwrite="false" value="Build" />
<property name="build.target.framework" overwrite="false" value="4.5" />
<property name="tools.dir" readonly="true" value="${path::get-full-path('Tools')}" />
<property name="docGen.dir" readonly="true" value="${path::combine(tools.dir, 'docGenerator')}" />
<property name="build.project" overwrite="false" value="${path::combine(docGen.dir, 'CCNetDocumentGenerator.sln')}" />
<property name="nauckit.nant.assembly" readonly="true" value="${path::combine( path::combine(tools.dir, 'NAnt'), 'NauckIT.NAnt.dll')}" />
<!-- Framework Support
http://nant.sourceforge.net/faq.html#framework-support
-->
<property name="nant.settings.currentframework" value="${framework::get-family(nant.settings.currentframework)}-${build.target.framework}" />
<target name="all" depends="clean, compile"/>
<target name="compile">
<loadtasks assembly="${nauckit.nant.assembly}" />
<echo message="Build Project: ${build.project}" />
<msbuild projectFile="${build.project}" targets="${build.target}" verbosity="Minimal">
<arg value="/p:TargetFrameworkVersion=${build.target.framework};Configuration=${build.configuration}"/>
<!-- Hack for current xbuild issues on Mono 2.5 -->
<environment>
<variable name="MONO_IOMAP" value="all" if="${framework::get-family(nant.settings.currentframework) == 'mono'}" />
<variable name="MONO_PATH" value="${path::get-full-path('lib')}" if="${framework::get-family(nant.settings.currentframework) == 'mono'}" />
</environment>
</msbuild>
</target>
<target name="clean">
<delete>
<fileset basedir="." failonempty="false">
<include name="doc-*.log"/>
</fileset>
</delete>
<copy file="${path::get-full-path('pages.xml')}" tofile="${path::combine( path::get-full-path('wiki'), 'pages.xml')}" overwrite="true"/>
</target>
</project>