开发者

Nant Script Task using Cruise Control

开发者 https://www.devze.com 2023-02-01 22:05 出处:网络
im using script taskin nant Script, in script task i have written C# code in which i\'m trying to write to console as below

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

精彩评论

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