Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

74 lines (62 sloc) 2.453 kB
<?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-project.xml" />
<target name="init" depends="common.init">
<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" />
<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 and VS.NET 2005 if available)">
<uptodate property="api.uptodate">
<sourcefiles>
<include name="${bin.dir}/*.dll" />
<include name="${bin.dir}/*.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}">
<property name="apidocbuilder.exe" value="${directory::get-parent-directory(environment::get-folder-path('System'))}\Microsoft.NET\Framework\v3.5\MSBuild.exe" />
<exec program="${apidocbuilder.exe}">
<arg line="NHibernate.shfbproj" />
</exec>
</if>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.