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: brian.wil...@dhr.alabama.gov<mailto:brian.wil...@dhr.alabama.gov>


From: Macdiarmid, James D. [mailto:james.d.macdiar...@saic.com]
Sent: Thursday, July 07, 2011 1:53 PM
To: nant-users@lists.sourceforge.net
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
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to