Browse files

Added test taskdef files

  • Loading branch information...
1 parent 8bd0ba3 commit 9e67922ab282a0f89c658981d2e90a192721b4bb FlukeFan committed Jan 23, 2007
View
3 Source/NAntTasks/TdcTask.cs
@@ -55,6 +55,9 @@ public string Output
/// </summary>
protected override void ExecuteTask()
{
+ foreach (string fileName in Sources.FileNames)
+ {
+ }
}
}
View
44 Source/Tests/Test_MultipleScript_Task1.taskdef
@@ -0,0 +1,44 @@
+<?xml version="1.0"?>
+<project name="Test_MultipleScript_Task1">
+
+ <!-- create a task -->
+ <taskdef name="testTask1">
+
+ <stringparams>
+ <stringparam name="stringParam1" />
+ <stringparam name="stringParam2" required="false" />
+ <stringparam name="stringParam3" required="true" />
+ </stringparams>
+
+ <nodeparams>
+ <nodeparam name="nodeParam1" />
+ <nodeparam name="nodeParam2" required="false" />
+ <nodeparam name="nodeParam3" required="true" />
+ </nodeparams>
+
+ <do>
+ <property name="sp1Value" value="__stringParam1__" />
+ <property name="sp2Value" value="__stringParam2__" />
+ <property name="sp3Value" value="__stringParam3__" />
+
+ <__nodeParam1__/>
+ <__nodeParam2__/>
+ <__nodeParam3__/>
+ </do>
+
+ </taskdef>
+
+ <!-- create a second task -->
+ <taskdef name="testTask1.1">
+
+ <stringparams>
+ <stringparam name="stringParam1" />
+ </stringparams>
+
+ <do>
+ <property name="sp1Value" value="__stringParam1__" />
+ </do>
+
+ </taskdef>
+
+</project>
View
17 Source/Tests/Test_MultipleScript_Task2.taskdef
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<project name="Test_MultipleScript_Task2">
+
+ <!-- create a task -->
+ <taskdef name="testTask2">
+
+ <stringparams>
+ <stringparam name="stringParam1" />
+ </stringparams>
+
+ <do>
+ <property name="sp1Value" value="__stringParam1__" />
+ </do>
+
+ </taskdef>
+
+</project>

0 comments on commit 9e67922

Please sign in to comment.