forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocumentation.build
74 lines (62 loc) · 2.32 KB
/
documentation.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" ?>
<project
name="NHibernate Documentation"
default="doc"
xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd"
>
<property name="root.dir" value=".." />
<include buildfile="${root.dir}/build-common/common.xml" />
<target name="init" depends="common.init common.nuget-restore">
<property name="doc.out.dir" value="${build.dir}/doc" />
<property name="doc.help2.out.dir" value="${doc.out.dir}/help2" />
<property name="doc.chm.out.dir" value="${doc.out.dir}" />
<property name="doc.tmp.dir" value="${path::get-full-path(doc.out.dir)}/temp" />
</target>
<target name="doc" depends="init manual api" />
<target name="clean" depends="init">
<nant target="clean" buildfile="reference/reference.build" />
<delete dir="${doc.out.dir}" />
<delete file="NHibernate.shfbproj" />
</target>
<target name="manual" depends="init">
<property name="lang" value="en" />
<copy file="LICENSE.txt" todir="${doc.out.dir}"/>
<nant target="build" buildfile="reference/reference.build">
<properties>
<property name="lang" value="${lang}" />
</properties>
</nant>
</target>
<target name="manual-zip" depends="manual">
<zip zipfile="${build.dir}/NHibernate-${project.version}-reference.zip">
<fileset basedir="${doc.out.dir}">
<include name="**/*" />
</fileset>
</zip>
</target>
<target name="apidocbuilder-project" depends="init">
<copy file="NHibernate.shfbproj.template" tofile="NHibernate.shfbproj" overwrite="true">
<filterchain>
<expandproperties />
</filterchain>
</copy>
</target>
<target name="api" depends="init apidocbuilder-project" description="Generates the API documentation (in MSDN style if available)">
<uptodate property="api.uptodate">
<sourcefiles>
<include name="${root.dir}/src/NHibernate/bin/${build.config}/net461/*.dll" />
<include name="${root.dir}/src/NHibernate/bin/${build.config}/net461/*.xml" />
</sourcefiles>
<targetfiles>
<include name="${doc.help2.out.dir}/**" />
<include name="${doc.chm.out.dir}/NHibernate.API.chm" />
</targetfiles>
</uptodate>
<echo if="${api.uptodate}">API documentation is up to date, skipping generation step.</echo>
<if test="${not api.uptodate}">
<exec program="${path::combine(tools.dir, 'actual_msbuild.cmd')}">
<arg line="NHibernate.shfbproj" />
</exec>
</if>
</target>
</project>