File: default.build

package info (click to toggle)
nant 0.85.dfsg1-9
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 8,364 kB
  • ctags: 6,756
  • sloc: cs: 50,420; sh: 1,014; makefile: 87; cpp: 70; xml: 40
file content (28 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0"?>
<project name="NAnt" default="run">
    <!-- Compile the test task and add it then use it. -->
    <target name="build">
        <mkdir dir="bin" />
        <csc target="library" output="bin/UserTasks.dll">
            <sources>
                <include name="UserTask.cs"/>
            </sources>
            <references basedir="${nant::get-base-directory()}">
                <include name="NAnt.Core.dll"/>
            </references>
        </csc>
    </target>

    <target name="run" depends="build">
        <!-- Dynamically load the tasks in the Task assembly. -->
        <loadtasks assembly="bin/UserTasks.dll" />

        <!-- Call our new task, converts the message attribute to all caps and displays it. -->
        <usertask message="This string should be all caps"/>
    </target>

    <target name="clean">
        <!-- Delete the build output. -->
        <delete file="bin/UserTasks.dll" if="${file::exists('bin/UserTasks.dll')}" />
    </target>
</project>