aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.nant/local.include
blob: 7d0b690b29b7653dbcf9eb015fed06fb695bc981 (plain)
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
<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.Tests.Framework.dll" />
          <include name="./bin/OpenSim.Tests.Region.ScriptEngine.Common.dll" />
          <include name="./bin/OpenSim.Tests.Region.ScriptEngine.Shared.dll" />
          <include name="./bin/OpenSim.Tests.Region.ScriptEngine.Shared.CodeTools.dll" />
          <include name="./bin/OpenSim.Region.Environment.dll" />
        </assemblies>
      </test>
    </nunit2>
</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>