Re: Need help with returning values to a build script from a custom task.

"Wilson, Brian" <[email protected]> Thu, 7 Jul 2011 15:18:02 -0500
Newsgroups gmane.comp.windows.dotnet.nant.user
Message-ID <[email protected]>
Something along option ii from http://nant.sourceforge.net/release/0.85/help/tasks/script.html

Example from site:
<script language="C#" prefix="test" >
  <code>
                <![CDATA[
                  [Function("test-func")]
                  public static string Testfunc(  ) {
                                  return "some result !!!!!!!!";
                  }
                ]]>
  </code>
</script>
<echo message='${test::test-func()}'/>

But instead, you can put it in a property.


Brian Wilson
Department of Human Resources
Email: [email protected]<mailto:[email protected]>


From: Macdiarmid, James D. [mailto:[email protected]]
Sent: Thursday, July 07, 2011 1:53 PM
To: [email protected]
Subject: [NAnt-users] Need help with returning values to a build script from a custom task.


I'm writing a custom task in C# to get all the associate changesets from TFS for a given workitem to be used in writing a build report.   I'm trying to figure out how to return this data back to the build script.

Can anyone point me to an example of doing this?

Thanks,

Jim

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2

_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users