<?xml version="1.0" ?>
<project name="OpenSim" default="build">
    <echo message="Using '${nant.settings.currentframework}' Framework"/>

    <property name="bin.dir" value="bin" />
    <property name="obj.dir" value="obj" />
    <property name="doc.dir" value="doc" />
    <property name="project.main.dir" value="${project::get-base-directory()}" />
    <property name="project.config" value="Debug" />

    <target name="Debug" description="">
        <property name="project.config" value="Debug" />
        <property name="build.debug" value="true" />
    </target>


    <target name="Release" description="">
        <property name="project.config" value="Release" />
        <property name="build.debug" value="false" />
    </target>

    <target name="net-1.1" description="Sets framework to .NET 1.1">
        <property name="nant.settings.currentframework" value="net-1.1" />
    </target>

    <target name="net-2.0" description="Sets framework to .NET 2.0">
        <property name="nant.settings.currentframework" value="net-2.0" />
    </target>

    <target name="mono-2.0" description="Sets framework to mono 2.0">
        <property name="nant.settings.currentframework" value="mono-2.0" />
    </target>

    <target name="mono-1.0" description="Sets framework to mono 1.0">
        <property name="nant.settings.currentframework" value="mono-1.0" />
    </target>

    <target name="init" description="">
        <call target="${project.config}" />
        <property name="sys.os.platform"
                  value="${platform::get-name()}"
                  />
        <echo message="Platform ${sys.os.platform}" />
        <property name="build.dir" value="${bin.dir}/${project.config}" />
    </target>

<!-- included from /home/sdague/downloads/7176/opensim-0.6.0-release/.nant/local.include -->
<!-- -*- xml -*- -->
<!-- please leve the top comment for us emacs folks -->
<property name="projectdir" value="opensim-0.5.5" />

<target name="distdir">
   <delete dir="${projectdir}" />
   <copy todir="${projectdir}">
       <fileset basedir=".">
          <include name="ThirdPartyLicenses/**" />
          <include name="CONTRIBUTORS.txt" />
          <include name="README" />
          <include name="OpenSim/**/*.cs" />
          <include name="**/*.build" />
          <include name="**/*.csproj" />
          <include name="**/*.csproj.user" />
          <include name="**/*.sln" />
          <include name="bin/*.dll" />
          <include name="bin/*.so" />
          <include name="bin/*.config" />
          <include name="bin/assets/**" />
          <include name="bin/data/**" />
          <include name="bin/OpenSim*xml" />
          <!-- the next is to exclude built libs -->
          <exclude name="bin/OpenSim.*dll" />
          <include name="bin/OpenSim.ini" />
          <include name="bin/defaultstripe.png" />
       </fileset>
   </copy>
   <touch file="${projectdir}/bin/startup_commands.txt" />
</target>

<target name="test" depends="build">
      <nunit2 failonerror="true" verbose="true">
      <formatter type="Plain" />
      <test>
        <assemblies>
          <include name="./bin/OpenSim.Framework.Tests.dll" />
          <include name="./bin/OpenSim.Framework.Servers.Tests.dll" />
          <include name="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" />
          <include name="./bin/OpenSim.Region.ScriptEngine.Shared.Tests.dll" />
          <include name="./bin/OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.dll" />
          <include name="./bin/OpenSim.Region.Environment.Tests.dll" />
          <include name="./bin/OpenSim.Data.SQLite.Tests.dll" />
          <include name="./bin/OpenSim.Data.MySQL.Tests.dll" />
        </assemblies>
      </test>
    </nunit2>
</target>

<target name="test-cov" depends="build">
    <!-- Code Coverage Test. Prototype, only works with mono 1.2. Instructions in http://opensimulator.org/wiki/Automated_Testing -->
    <mkdir dir="cov" failonerror="false" />
    <exec program="mono">
      <arg value="--debug" />
      <arg value="--profile=monocov:outfile=./cov/OpenSim.Framework.Servers.cov,+[OpenSim.Framework.Servers]" />
      <arg value="/usr/lib/nunit/nunit-console.exe" />
      <arg value="./bin/OpenSim.Framework.Servers.Tests.dll" />
    </exec>
    <delete dir="./cov/OpenSim.Framework.Servers" />
    <exec program="monocov">
      <arg value="--export-html=./cov/OpenSim.Framework.Servers ./cov/OpenSim.Framework.Servers.cov" />
    </exec>
    
    <exec program="mono">
      <arg value="--debug" />
      <arg value="--profile=monocov:outfile=./cov/OpenSim.Region.ClientStack.LindenUDP.cov,+[OpenSim.Region.ClientStack.LindenUDP]" />
      <arg value="/usr/lib/nunit/nunit-console.exe" />
     <arg value="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" />
    </exec>
    <delete dir="./cov/OpenSim.Region.ClientStack.LindenUDP" />
    <exec program="monocov">
      <arg value="--export-html=./cov/OpenSim.Region.ClientStack.LindenUDP ./cov/OpenSim.Region.ClientStack.LindenUDP.cov" />
    </exec>
    
    <exec program="mono">
      <arg value="--debug" />
      <arg value="--profile=monocov:outfile=./cov/OpenSim.Region.ScriptEngine.Shared.cov,+[OpenSim.Region.ScriptEngine.Shared]" />
      <arg value="/usr/lib/nunit/nunit-console.exe" />
      <arg value="./bin/OpenSim.Region.ScriptEngine.Shared.Tests.dll" />
    </exec>
    <delete dir="./cov/OpenSim.Region.ScriptEngine.Shared" />
    <exec program="monocov">      
      <arg value="--export-html=./cov/OpenSim.Region.ScriptEngine.Shared ./cov/OpenSim.Region.ScriptEngine.Shared.cov" />
    </exec>    
    
    <exec program="mono">
      <arg value="--debug" />
      <arg value="--profile=monocov:outfile=./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools.cov,+[OpenSim.Region.ScriptEngine.Shared.CodeTools]" />
      <arg value="/usr/lib/nunit/nunit-console.exe" />
      <arg value="./bin/OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.dll" />
    </exec>
    <delete dir="./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools" />
    <exec program="monocov">
      <arg value="--export-html=./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools ./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools.cov" />
    </exec>    
    
    <exec program="mono">
      <arg value="--debug" />
      <arg value="--profile=monocov:outfile=./cov/OpenSim.Region.Environment.cov,+[OpenSim.Region.Environment]" />
      <arg value="/usr/lib/nunit/nunit-console.exe" />
      <arg value="./bin/OpenSim.Region.Environment.Tests.dll" />
    </exec>
    <delete dir="./cov/OpenSim.Region.Environment" />
    <exec program="monocov">
      <arg value="--export-html=./cov/OpenSim.Region.Environment ./cov/OpenSim.Region.Environment.cov" />
    </exec>    
    
    <exec program="mono">
      <arg value="--debug" />
      <arg value="--profile=monocov:outfile=./cov/OpenSim.Data.SQLite.cov,+[OpenSim.Data.SQLite]" />
      <arg value="/usr/lib/nunit/nunit-console.exe" />
      <arg value="./bin/OpenSim.Data.SQLite.Tests.dll" />
    </exec>
    <delete dir="./cov/OpenSim.Data.SQLite" />
    <exec program="monocov">
      <arg value="--export-html=./cov/OpenSim.Data.SQLite ./cov/OpenSim.Data.SQLite.cov" />
    </exec>    
    
    <exec program="mono">
      <arg value="--debug" />
      <arg value="--profile=monocov:outfile=./cov/OpenSim.Data.MySQL.cov,+[OpenSim.Data.MySQL.Tests]" />
      <arg value="/usr/lib/nunit/nunit-console.exe" />
      <arg value="./bin/OpenSim.Data.MySQL.Tests.dll" />
    </exec>  
    <delete dir="./cov/OpenSim.Data.MySQL" />
    <exec program="monocov">
      <arg value="--export-html=./cov/OpenSim.Data.MySQL ./cov/OpenSim.Data.MySQL.cov" />
    </exec>    
    <delete file="C:\NUnitPrimaryTrace.txt" failonerror="false" />
    <delete file="TestResult.xml" failonerror="false" />
</target>


<target name="test-xml" depends="build">
      <nunit2 failonerror="true" verbose="true">
      <formatter type="Xml" usefile="true" extension=".xml" outputdir="./test-results" />
      <test>
        <assemblies>
          <include name="./bin/OpenSim.Framework.Tests.dll" />
          <include name="./bin/OpenSim.Framework.Servers.Tests.dll" />
          <include name="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" />
          <include name="./bin/OpenSim.Region.ScriptEngine.Shared.Tests.dll" />
          <include name="./bin/OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.dll" />
          <include name="./bin/OpenSim.Region.Environment.Tests.dll" />
          <include name="./bin/OpenSim.Data.SQLite.Tests.dll" />
          <include name="./bin/OpenSim.Data.MySQL.Tests.dll" />
        </assemblies>
      </test>
    </nunit2>
</target>

<target name="doxygen">
  <exec program="doxygen" workingdir="doc" commandline="doxygen.conf" />
</target>


<target name="dist" depends="distdir">
    <zip zipfile="${projectdir}.zip">
    <fileset basedir=".">
        <include name="${projectdir}/**" />
    </fileset>
    </zip>
    <tar destfile="${projectdir}.tar.gz" compression="GZip">
    <fileset basedir=".">
        <include name="${projectdir}/**" />
    </fileset>
    </tar>
</target>


    <target name="clean" description="">
        <echo message="Deleting all builds from all configurations" />
        <delete failonerror="false">
        <fileset basedir="${bin.dir}">
            <include name="OpenSim*.dll"/>
            <include name="OpenSim*.exe"/>
            <include name="ScriptEngines/*"/>
            <include name="Physics/*"/>
            <exclude name="OpenSim.32BitLaunch.exe"/>
            <exclude name="ScriptEngines/Default.lsl"/>
        </fileset>
        </delete>
        <delete dir="${obj.dir}" failonerror="false" />
        <nant buildfile="OpenSim/Region/Application/OpenSim.exe.build" target="clean" />
        <nant buildfile="ThirdParty/3Di/LoadBalancer/OpenSim.ApplicationPlugins.LoadBalancer.dll.build" target="clean" />
        <nant buildfile="OpenSim/ApplicationPlugins/LoadRegions/OpenSim.ApplicationPlugins.LoadRegions.dll.build" target="clean" />
        <nant buildfile="ThirdParty/3Di/RegionProxy/OpenSim.ApplicationPlugins.RegionProxy.dll.build" target="clean" />
        <nant buildfile="OpenSim/ApplicationPlugins/RemoteController/OpenSim.ApplicationPlugins.RemoteController.dll.build" target="clean" />
        <nant buildfile="OpenSim/ApplicationPlugins/Rest/OpenSim.ApplicationPlugins.Rest.dll.build" target="clean" />
        <nant buildfile="OpenSim/ApplicationPlugins/Rest/Inventory/OpenSim.ApplicationPlugins.Rest.Inventory.dll.build" target="clean" />
        <nant buildfile="OpenSim/ApplicationPlugins/Rest/Regions/OpenSim.ApplicationPlugins.Rest.Regions.dll.build" target="clean" />
        <nant buildfile="OpenSim/ApplicationPlugins/ScriptEngine/OpenSim.ApplicationPlugins.ScriptEngine.dll.build" target="clean" />
        <nant buildfile="OpenSim/Data/OpenSim.Data.dll.build" target="clean" />
        <nant buildfile="OpenSim/Data/Base/OpenSim.Data.Base.dll.build" target="clean" />
        <nant buildfile="OpenSim/Data/MapperFactory/OpenSim.Data.MapperFactory.dll.build" target="clean" />
        <nant buildfile="OpenSim/Data/MSSQL/OpenSim.Data.MSSQL.dll.build" target="clean" />
        <nant buildfile="OpenSim/Data/MSSQLMapper/OpenSim.Data.MSSQLMapper.dll.build" target="clean" />
        <nant buildfile="OpenSim/Data/MySQL/OpenSim.Data.MySQL.dll.build" target="clean" />
        <nant buildfile="OpenSim/Data/MySQL/Tests/OpenSim.Data.MySQL.Tests.dll.build" target="clean" />
        <nant buildfile="OpenSim/Data/MySQLMapper/OpenSim.Data.MySQLMapper.dll.build" target="clean" />
        <nant buildfile="OpenSim/Data/NHibernate/OpenSim.Data.NHibernate.dll.build" target="clean" />
        <nant buildfile="OpenSim/Data/Null/OpenSim.Data.Null.dll.build" target="clean" />
        <nant buildfile="OpenSim/Data/SQLite/OpenSim.Data.SQLite.dll.build" target="clean" />
        <nant buildfile="OpenSim/Data/SQLite/Tests/OpenSim.Data.SQLite.Tests.dll.build" target="clean" />
        <nant buildfile="OpenSim/Data/Tests/OpenSim.Data.Tests.dll.build" target="clean" />
        <nant buildfile="OpenSim/Framework/OpenSim.Framework.dll.build" target="clean" />
        <nant buildfile="OpenSim/Framework/AssetLoader/Filesystem/OpenSim.Framework.AssetLoader.Filesystem.dll.build" target="clean" />
        <nant buildfile="OpenSim/Framework/Communications/OpenSim.Framework.Communications.dll.build" target="clean" />
        <nant buildfile="OpenSim/Framework/Configuration/HTTP/OpenSim.Framework.Configuration.HTTP.dll.build" target="clean" />
        <nant buildfile="OpenSim/Framework/Configuration/XML/OpenSim.Framework.Configuration.XML.dll.build" target="clean" />
        <nant buildfile="OpenSim/Framework/Console/OpenSim.Framework.Console.dll.build" target="clean" />
        <nant buildfile="OpenSim/Framework/RegionLoader/Filesystem/OpenSim.Framework.RegionLoader.Filesystem.dll.build" target="clean" />
        <nant buildfile="OpenSim/Framework/RegionLoader/Web/OpenSim.Framework.RegionLoader.Web.dll.build" target="clean" />
        <nant buildfile="OpenSim/Framework/Servers/OpenSim.Framework.Servers.dll.build" target="clean" />
        <nant buildfile="OpenSim/Framework/Servers/Tests/OpenSim.Framework.Servers.Tests.dll.build" target="clean" />
        <nant buildfile="OpenSim/Framework/Statistics/OpenSim.Framework.Statistics.dll.build" target="clean" />
        <nant buildfile="OpenSim/Framework/Tests/OpenSim.Framework.Tests.dll.build" target="clean" />
        <nant buildfile="OpenSim/Grid/AssetServer/OpenSim.Grid.AssetServer.exe.build" target="clean" />
        <nant buildfile="OpenSim/Grid/Communications/OGS1/OpenSim.Grid.Communications.OGS1.dll.build" target="clean" />
        <nant buildfile="OpenSim/Grid/GridServer/OpenSim.Grid.GridServer.exe.build" target="clean" />
        <nant buildfile="OpenSim/Grid/InventoryServer/OpenSim.Grid.InventoryServer.exe.build" target="clean" />
        <nant buildfile="OpenSim/Grid/MessagingServer/OpenSim.Grid.MessagingServer.exe.build" target="clean" />
        <nant buildfile="OpenSim/Grid/UserServer/OpenSim.Grid.UserServer.exe.build" target="clean" />
        <nant buildfile="OpenSim/Region/ClientStack/OpenSim.Region.ClientStack.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/ClientStack/LindenUDP/OpenSim.Region.ClientStack.LindenUDP.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/ClientStack/LindenUDP/Tests/OpenSim.Region.ClientStack.LindenUDP.Tests.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/DataSnapshot/OpenSim.Region.DataSnapshot.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Environment/OpenSim.Region.Environment.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Environment/OpenSim.Region.Environment.Tests.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Examples/SimpleModule/OpenSim.Region.Examples.SimpleModule.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Interfaces/OpenSim.Region.Interfaces.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Modules/Python/OpenSim.Region.Modules.Python.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Modules/SvnSerialiser/OpenSim.Region.Modules.SvnSerialiser.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Modules/Terrain/Extensions/DefaultEffects/OpenSim.Region.Modules.Terrain.Extensions.DefaultEffects.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Physics/BasicPhysicsPlugin/OpenSim.Region.Physics.BasicPhysicsPlugin.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Physics/BulletXPlugin/OpenSim.Region.Physics.BulletXPlugin.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Physics/Manager/OpenSim.Region.Physics.Manager.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Physics/Meshing/OpenSim.Region.Physics.Meshing.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Physics/OdePlugin/OpenSim.Region.Physics.OdePlugin.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Physics/PhysXPlugin/OpenSim.Region.Physics.PhysXPlugin.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/Physics/POSPlugin/OpenSim.Region.Physics.POSPlugin.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/ScriptEngine/DotNetEngine/OpenSim.Region.ScriptEngine.DotNetEngine.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/OpenSim.Region.ScriptEngine.Shared.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OpenSim.Region.ScriptEngine.Shared.Api.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OpenSim.Region.ScriptEngine.Shared.Api.Runtime.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/CodeTools/OpenSim.Region.ScriptEngine.Shared.CodeTools.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Instance/OpenSim.Region.ScriptEngine.Shared.Instance.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Tests/OpenSim.Region.ScriptEngine.Shared.Tests.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/OpenSim.Region.ScriptEngine.Shared.YieldProlog.dll.build" target="clean" />
        <nant buildfile="OpenSim/Region/ScriptEngine/XEngine/OpenSim.Region.ScriptEngine.XEngine.dll.build" target="clean" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Commands_LSL/OpenSim.ScriptEngine.Components.DotNetEngine.Commands_LSL.dll.build" target="clean" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Commands_OSSL/OpenSim.ScriptEngine.Components.DotNetEngine.Commands_OSSL.dll.build" target="clean" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Compilers/OpenSim.ScriptEngine.Components.DotNetEngine.Compilers.dll.build" target="clean" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Events/OpenSim.ScriptEngine.Components.DotNetEngine.Events.dll.build" target="clean" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Scheduler/OpenSim.ScriptEngine.Components.DotNetEngine.Scheduler.dll.build" target="clean" />
        <nant buildfile="OpenSim/ScriptEngine/Engines/DotNetEngine/OpenSim.ScriptEngine.Engines.DotNetEngine.dll.build" target="clean" />
        <nant buildfile="OpenSim/Tests/Common/OpenSim.Tests.Common.dll.build" target="clean" />
        <nant buildfile="OpenSim/TestSuite/OpenSim.TestSuite.exe.build" target="clean" />
        <nant buildfile="OpenSim/Tools/Export/OpenSimExport.exe.build" target="clean" />
        <nant buildfile="OpenSim/Tools/pCampBot/pCampBot.exe.build" target="clean" />
        <nant buildfile="ThirdParty/SmartThreadPool/SmartThreadPool.dll.build" target="clean" />
    </target>

    <target name="build" depends="init" description="">
        <nant buildfile="OpenSim/Framework/Console/OpenSim.Framework.Console.dll.build" target="build" />
        <nant buildfile="OpenSim/Framework/OpenSim.Framework.dll.build" target="build" />
        <nant buildfile="OpenSim/Tests/Common/OpenSim.Tests.Common.dll.build" target="build" />
        <nant buildfile="OpenSim/Framework/Tests/OpenSim.Framework.Tests.dll.build" target="build" />
        <nant buildfile="OpenSim/Framework/Statistics/OpenSim.Framework.Statistics.dll.build" target="build" />
        <nant buildfile="OpenSim/Data/Base/OpenSim.Data.Base.dll.build" target="build" />
        <nant buildfile="OpenSim/Data/OpenSim.Data.dll.build" target="build" />
        <nant buildfile="OpenSim/Data/MySQLMapper/OpenSim.Data.MySQLMapper.dll.build" target="build" />
        <nant buildfile="OpenSim/Data/MSSQLMapper/OpenSim.Data.MSSQLMapper.dll.build" target="build" />
        <nant buildfile="OpenSim/Data/MapperFactory/OpenSim.Data.MapperFactory.dll.build" target="build" />
        <nant buildfile="OpenSim/Framework/Configuration/XML/OpenSim.Framework.Configuration.XML.dll.build" target="build" />
        <nant buildfile="OpenSim/Framework/Configuration/HTTP/OpenSim.Framework.Configuration.HTTP.dll.build" target="build" />
        <nant buildfile="OpenSim/Framework/AssetLoader/Filesystem/OpenSim.Framework.AssetLoader.Filesystem.dll.build" target="build" />
        <nant buildfile="OpenSim/Framework/RegionLoader/Web/OpenSim.Framework.RegionLoader.Web.dll.build" target="build" />
        <nant buildfile="OpenSim/Framework/RegionLoader/Filesystem/OpenSim.Framework.RegionLoader.Filesystem.dll.build" target="build" />
        <nant buildfile="OpenSim/Framework/Servers/OpenSim.Framework.Servers.dll.build" target="build" />
        <nant buildfile="OpenSim/Framework/Servers/Tests/OpenSim.Framework.Servers.Tests.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Physics/Manager/OpenSim.Region.Physics.Manager.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Physics/BasicPhysicsPlugin/OpenSim.Region.Physics.BasicPhysicsPlugin.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Physics/POSPlugin/OpenSim.Region.Physics.POSPlugin.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Physics/PhysXPlugin/OpenSim.Region.Physics.PhysXPlugin.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Physics/OdePlugin/OpenSim.Region.Physics.OdePlugin.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Physics/BulletXPlugin/OpenSim.Region.Physics.BulletXPlugin.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Physics/Meshing/OpenSim.Region.Physics.Meshing.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Interfaces/OpenSim.Region.Interfaces.dll.build" target="build" />
        <nant buildfile="OpenSim/Framework/Communications/OpenSim.Framework.Communications.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Environment/OpenSim.Region.Environment.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Environment/OpenSim.Region.Environment.Tests.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/ClientStack/OpenSim.Region.ClientStack.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/ClientStack/LindenUDP/OpenSim.Region.ClientStack.LindenUDP.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/ClientStack/LindenUDP/Tests/OpenSim.Region.ClientStack.LindenUDP.Tests.dll.build" target="build" />
        <nant buildfile="OpenSim/Data/Null/OpenSim.Data.Null.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Modules/Python/OpenSim.Region.Modules.Python.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Modules/Terrain/Extensions/DefaultEffects/OpenSim.Region.Modules.Terrain.Extensions.DefaultEffects.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Modules/SvnSerialiser/OpenSim.Region.Modules.SvnSerialiser.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Application/OpenSim.exe.build" target="build" />
        <nant buildfile="OpenSim/ApplicationPlugins/LoadRegions/OpenSim.ApplicationPlugins.LoadRegions.dll.build" target="build" />
        <nant buildfile="OpenSim/ApplicationPlugins/RemoteController/OpenSim.ApplicationPlugins.RemoteController.dll.build" target="build" />
        <nant buildfile="OpenSim/ApplicationPlugins/Rest/OpenSim.ApplicationPlugins.Rest.dll.build" target="build" />
        <nant buildfile="OpenSim/ApplicationPlugins/Rest/Regions/OpenSim.ApplicationPlugins.Rest.Regions.dll.build" target="build" />
        <nant buildfile="OpenSim/ApplicationPlugins/Rest/Inventory/OpenSim.ApplicationPlugins.Rest.Inventory.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/DataSnapshot/OpenSim.Region.DataSnapshot.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/Examples/SimpleModule/OpenSim.Region.Examples.SimpleModule.dll.build" target="build" />
        <nant buildfile="OpenSim/Data/Tests/OpenSim.Data.Tests.dll.build" target="build" />
        <nant buildfile="OpenSim/Data/MySQL/OpenSim.Data.MySQL.dll.build" target="build" />
        <nant buildfile="OpenSim/Data/MySQL/Tests/OpenSim.Data.MySQL.Tests.dll.build" target="build" />
        <nant buildfile="OpenSim/Data/MSSQL/OpenSim.Data.MSSQL.dll.build" target="build" />
        <nant buildfile="OpenSim/Data/SQLite/OpenSim.Data.SQLite.dll.build" target="build" />
        <nant buildfile="OpenSim/Data/SQLite/Tests/OpenSim.Data.SQLite.Tests.dll.build" target="build" />
        <nant buildfile="OpenSim/Data/NHibernate/OpenSim.Data.NHibernate.dll.build" target="build" />
        <nant buildfile="ThirdParty/SmartThreadPool/SmartThreadPool.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/OpenSim.Region.ScriptEngine.Shared.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Tests/OpenSim.Region.ScriptEngine.Shared.Tests.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OpenSim.Region.ScriptEngine.Shared.Api.Runtime.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/OpenSim.Region.ScriptEngine.Shared.YieldProlog.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OpenSim.Region.ScriptEngine.Shared.Api.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/CodeTools/OpenSim.Region.ScriptEngine.Shared.CodeTools.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Instance/OpenSim.Region.ScriptEngine.Shared.Instance.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/ScriptEngine/XEngine/OpenSim.Region.ScriptEngine.XEngine.dll.build" target="build" />
        <nant buildfile="OpenSim/Region/ScriptEngine/DotNetEngine/OpenSim.Region.ScriptEngine.DotNetEngine.dll.build" target="build" />
        <nant buildfile="OpenSim/Grid/Communications/OGS1/OpenSim.Grid.Communications.OGS1.dll.build" target="build" />
        <nant buildfile="OpenSim/Grid/GridServer/OpenSim.Grid.GridServer.exe.build" target="build" />
        <nant buildfile="OpenSim/Grid/AssetServer/OpenSim.Grid.AssetServer.exe.build" target="build" />
        <nant buildfile="OpenSim/Grid/UserServer/OpenSim.Grid.UserServer.exe.build" target="build" />
        <nant buildfile="OpenSim/Grid/InventoryServer/OpenSim.Grid.InventoryServer.exe.build" target="build" />
        <nant buildfile="OpenSim/Grid/MessagingServer/OpenSim.Grid.MessagingServer.exe.build" target="build" />
        <nant buildfile="OpenSim/ApplicationPlugins/ScriptEngine/OpenSim.ApplicationPlugins.ScriptEngine.dll.build" target="build" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Commands_LSL/OpenSim.ScriptEngine.Components.DotNetEngine.Commands_LSL.dll.build" target="build" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Commands_OSSL/OpenSim.ScriptEngine.Components.DotNetEngine.Commands_OSSL.dll.build" target="build" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Compilers/OpenSim.ScriptEngine.Components.DotNetEngine.Compilers.dll.build" target="build" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Events/OpenSim.ScriptEngine.Components.DotNetEngine.Events.dll.build" target="build" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Scheduler/OpenSim.ScriptEngine.Components.DotNetEngine.Scheduler.dll.build" target="build" />
        <nant buildfile="OpenSim/ScriptEngine/Engines/DotNetEngine/OpenSim.ScriptEngine.Engines.DotNetEngine.dll.build" target="build" />
        <nant buildfile="OpenSim/Tools/Export/OpenSimExport.exe.build" target="build" />
        <nant buildfile="OpenSim/Tools/pCampBot/pCampBot.exe.build" target="build" />
        <nant buildfile="ThirdParty/3Di/RegionProxy/OpenSim.ApplicationPlugins.RegionProxy.dll.build" target="build" />
        <nant buildfile="ThirdParty/3Di/LoadBalancer/OpenSim.ApplicationPlugins.LoadBalancer.dll.build" target="build" />
        <nant buildfile="OpenSim/TestSuite/OpenSim.TestSuite.exe.build" target="build" />
    </target>

    <target name="build-release" depends="Release, init, build" description="Builds in Release mode" />

    <target name="build-debug" depends="Debug, init, build" description="Builds in Debug mode" />

    <target name="package" depends="clean, doc" description="Builds all" />

    <target name="doc" depends="build-release">
        <echo message="Generating all documentation from all builds" />
        <nant buildfile="OpenSim/Region/Application/OpenSim.exe.build" target="doc" />
        <nant buildfile="ThirdParty/3Di/LoadBalancer/OpenSim.ApplicationPlugins.LoadBalancer.dll.build" target="doc" />
        <nant buildfile="OpenSim/ApplicationPlugins/LoadRegions/OpenSim.ApplicationPlugins.LoadRegions.dll.build" target="doc" />
        <nant buildfile="ThirdParty/3Di/RegionProxy/OpenSim.ApplicationPlugins.RegionProxy.dll.build" target="doc" />
        <nant buildfile="OpenSim/ApplicationPlugins/RemoteController/OpenSim.ApplicationPlugins.RemoteController.dll.build" target="doc" />
        <nant buildfile="OpenSim/ApplicationPlugins/Rest/OpenSim.ApplicationPlugins.Rest.dll.build" target="doc" />
        <nant buildfile="OpenSim/ApplicationPlugins/Rest/Inventory/OpenSim.ApplicationPlugins.Rest.Inventory.dll.build" target="doc" />
        <nant buildfile="OpenSim/ApplicationPlugins/Rest/Regions/OpenSim.ApplicationPlugins.Rest.Regions.dll.build" target="doc" />
        <nant buildfile="OpenSim/ApplicationPlugins/ScriptEngine/OpenSim.ApplicationPlugins.ScriptEngine.dll.build" target="doc" />
        <nant buildfile="OpenSim/Data/OpenSim.Data.dll.build" target="doc" />
        <nant buildfile="OpenSim/Data/Base/OpenSim.Data.Base.dll.build" target="doc" />
        <nant buildfile="OpenSim/Data/MapperFactory/OpenSim.Data.MapperFactory.dll.build" target="doc" />
        <nant buildfile="OpenSim/Data/MSSQL/OpenSim.Data.MSSQL.dll.build" target="doc" />
        <nant buildfile="OpenSim/Data/MSSQLMapper/OpenSim.Data.MSSQLMapper.dll.build" target="doc" />
        <nant buildfile="OpenSim/Data/MySQL/OpenSim.Data.MySQL.dll.build" target="doc" />
        <nant buildfile="OpenSim/Data/MySQL/Tests/OpenSim.Data.MySQL.Tests.dll.build" target="doc" />
        <nant buildfile="OpenSim/Data/MySQLMapper/OpenSim.Data.MySQLMapper.dll.build" target="doc" />
        <nant buildfile="OpenSim/Data/NHibernate/OpenSim.Data.NHibernate.dll.build" target="doc" />
        <nant buildfile="OpenSim/Data/Null/OpenSim.Data.Null.dll.build" target="doc" />
        <nant buildfile="OpenSim/Data/SQLite/OpenSim.Data.SQLite.dll.build" target="doc" />
        <nant buildfile="OpenSim/Data/SQLite/Tests/OpenSim.Data.SQLite.Tests.dll.build" target="doc" />
        <nant buildfile="OpenSim/Data/Tests/OpenSim.Data.Tests.dll.build" target="doc" />
        <nant buildfile="OpenSim/Framework/OpenSim.Framework.dll.build" target="doc" />
        <nant buildfile="OpenSim/Framework/AssetLoader/Filesystem/OpenSim.Framework.AssetLoader.Filesystem.dll.build" target="doc" />
        <nant buildfile="OpenSim/Framework/Communications/OpenSim.Framework.Communications.dll.build" target="doc" />
        <nant buildfile="OpenSim/Framework/Configuration/HTTP/OpenSim.Framework.Configuration.HTTP.dll.build" target="doc" />
        <nant buildfile="OpenSim/Framework/Configuration/XML/OpenSim.Framework.Configuration.XML.dll.build" target="doc" />
        <nant buildfile="OpenSim/Framework/Console/OpenSim.Framework.Console.dll.build" target="doc" />
        <nant buildfile="OpenSim/Framework/RegionLoader/Filesystem/OpenSim.Framework.RegionLoader.Filesystem.dll.build" target="doc" />
        <nant buildfile="OpenSim/Framework/RegionLoader/Web/OpenSim.Framework.RegionLoader.Web.dll.build" target="doc" />
        <nant buildfile="OpenSim/Framework/Servers/OpenSim.Framework.Servers.dll.build" target="doc" />
        <nant buildfile="OpenSim/Framework/Servers/Tests/OpenSim.Framework.Servers.Tests.dll.build" target="doc" />
        <nant buildfile="OpenSim/Framework/Statistics/OpenSim.Framework.Statistics.dll.build" target="doc" />
        <nant buildfile="OpenSim/Framework/Tests/OpenSim.Framework.Tests.dll.build" target="doc" />
        <nant buildfile="OpenSim/Grid/AssetServer/OpenSim.Grid.AssetServer.exe.build" target="doc" />
        <nant buildfile="OpenSim/Grid/Communications/OGS1/OpenSim.Grid.Communications.OGS1.dll.build" target="doc" />
        <nant buildfile="OpenSim/Grid/GridServer/OpenSim.Grid.GridServer.exe.build" target="doc" />
        <nant buildfile="OpenSim/Grid/InventoryServer/OpenSim.Grid.InventoryServer.exe.build" target="doc" />
        <nant buildfile="OpenSim/Grid/MessagingServer/OpenSim.Grid.MessagingServer.exe.build" target="doc" />
        <nant buildfile="OpenSim/Grid/UserServer/OpenSim.Grid.UserServer.exe.build" target="doc" />
        <nant buildfile="OpenSim/Region/ClientStack/OpenSim.Region.ClientStack.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/ClientStack/LindenUDP/OpenSim.Region.ClientStack.LindenUDP.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/ClientStack/LindenUDP/Tests/OpenSim.Region.ClientStack.LindenUDP.Tests.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/DataSnapshot/OpenSim.Region.DataSnapshot.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Environment/OpenSim.Region.Environment.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Environment/OpenSim.Region.Environment.Tests.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Examples/SimpleModule/OpenSim.Region.Examples.SimpleModule.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Interfaces/OpenSim.Region.Interfaces.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Modules/Python/OpenSim.Region.Modules.Python.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Modules/SvnSerialiser/OpenSim.Region.Modules.SvnSerialiser.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Modules/Terrain/Extensions/DefaultEffects/OpenSim.Region.Modules.Terrain.Extensions.DefaultEffects.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Physics/BasicPhysicsPlugin/OpenSim.Region.Physics.BasicPhysicsPlugin.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Physics/BulletXPlugin/OpenSim.Region.Physics.BulletXPlugin.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Physics/Manager/OpenSim.Region.Physics.Manager.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Physics/Meshing/OpenSim.Region.Physics.Meshing.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Physics/OdePlugin/OpenSim.Region.Physics.OdePlugin.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Physics/PhysXPlugin/OpenSim.Region.Physics.PhysXPlugin.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/Physics/POSPlugin/OpenSim.Region.Physics.POSPlugin.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/ScriptEngine/DotNetEngine/OpenSim.Region.ScriptEngine.DotNetEngine.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/OpenSim.Region.ScriptEngine.Shared.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OpenSim.Region.ScriptEngine.Shared.Api.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OpenSim.Region.ScriptEngine.Shared.Api.Runtime.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/CodeTools/OpenSim.Region.ScriptEngine.Shared.CodeTools.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Instance/OpenSim.Region.ScriptEngine.Shared.Instance.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Tests/OpenSim.Region.ScriptEngine.Shared.Tests.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/OpenSim.Region.ScriptEngine.Shared.YieldProlog.dll.build" target="doc" />
        <nant buildfile="OpenSim/Region/ScriptEngine/XEngine/OpenSim.Region.ScriptEngine.XEngine.dll.build" target="doc" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Commands_LSL/OpenSim.ScriptEngine.Components.DotNetEngine.Commands_LSL.dll.build" target="doc" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Commands_OSSL/OpenSim.ScriptEngine.Components.DotNetEngine.Commands_OSSL.dll.build" target="doc" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Compilers/OpenSim.ScriptEngine.Components.DotNetEngine.Compilers.dll.build" target="doc" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Events/OpenSim.ScriptEngine.Components.DotNetEngine.Events.dll.build" target="doc" />
        <nant buildfile="OpenSim/ScriptEngine/Components/DotNetEngine/Scheduler/OpenSim.ScriptEngine.Components.DotNetEngine.Scheduler.dll.build" target="doc" />
        <nant buildfile="OpenSim/ScriptEngine/Engines/DotNetEngine/OpenSim.ScriptEngine.Engines.DotNetEngine.dll.build" target="doc" />
        <nant buildfile="OpenSim/Tests/Common/OpenSim.Tests.Common.dll.build" target="doc" />
        <nant buildfile="OpenSim/TestSuite/OpenSim.TestSuite.exe.build" target="doc" />
        <nant buildfile="OpenSim/Tools/Export/OpenSimExport.exe.build" target="doc" />
        <nant buildfile="OpenSim/Tools/pCampBot/pCampBot.exe.build" target="doc" />
        <nant buildfile="ThirdParty/SmartThreadPool/SmartThreadPool.dll.build" target="doc" />
    </target>

</project>
