开发者

Nant Script Task using Cruise Control

im using script task in nant Script, in script task i have written C# code in which i'm trying to write to console as below

console.writeline("Hello");

and also i have a method and its return type.

Actually i'm calling this Nant script from Cruise Control web dashboard.

N开发者_JAVA百科ow my question is i can see only the return type of method in nant ouptut on Cruise Control Web Dash Board but i dont see console.writeline("Hello") message, so how can i get console message also on cruise control dashboard under nant Output? Is there any way to show console messages on cruise control Web dash Board

,


You need to use the NAnt Log methods to write your output, e.g.

<script language="C#">
  <code>
    <![CDATA[
      public static void ScriptMain(Project project) 
      {
        // ...
        project.Log(Level.Info, "Moving directory {0} to {1}", source, destination);
      }
    ]]>
  </code>
</script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜