File: vb-syntax.build

package info (click to toggle)
nunit 2.4.7%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,672 kB
  • ctags: 9,598
  • sloc: cs: 54,034; cpp: 553; xml: 101; sh: 97; makefile: 50; ansic: 8
file content (48 lines) | stat: -rw-r--r-- 1,558 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0"?>
<project name="VBSyntax" default="build">

  <property name="output.dir" value="../../bin" />
  <property name="output.dll" value="../../bin/vb-syntax.dll" />

  <target name="clean">
    <delete file="${output.dll}" />
  </target>

  <target name="build">
    <mkdir dir="${output.dir}" unless="${directory::exists(output.dir)}" />
    <copy file="../../../bin/nunit.framework.dll" todir="${output.dir}" 
      if="${file::exists('../../../bin/nunit.framework.dll')}" />

    <vbc target="library" output="${output.dll}">
      <imports>
        <import namespace="System"/>
        <import namespace="System.Collections"/>
      </imports>
      <sources>
        <include name="*.vb"/>
      </sources>
      <references basedir="${output.dir}">
        <include name="nunit.framework.dll" />
      </references>
    </vbc>
  </target>

  <target name="rebuild" depends="clean,build" />

  <target name="package">
    <copy todir="${package.samples.dir}/vb/syntax" includeemptydirs="false">
      <fileset basedir=".">
        <include name="vb-syntax.vbproj" />
        <include name="vb-syntax.build" />
        <include name="AssemblyInfo.vb" />
        <include name="AssertSyntaxTests.vb" />
      </fileset>
    </copy>

    <xmlpoke 
      file="${package.samples.dir}/vb/syntax/vb-syntax.vbproj"
      xpath="/VisualStudioProject/VisualBasic/Build/References/Reference[@Name='nunit.framework']/@HintPath"
      value="..\..\..\bin\nunit.framework.dll" />
  </target>

</project>