Why not simplify it and write a small inline C# or VB script in the build file?

Stephen Tunney, MCAD.NET

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gary Feldman
Sent: February 8, 2006 3:08 PM
To: Nant Users
Subject: Re: [NAnt-users] Return from an <exec> call

Gilles DEVAUX wrote:

>The attribute resultproperty="result" of the <exec> task stores the return 
>code of the executable in the given property.
>
>Then ${result} = exit code
>  
>
That works if all you're interested in is the status code, but that 
doesn't sound like what the author of the basenote wanted.  If he's 
searching the registry for some data, he's probably more interested in 
the actual contents of a registry entry, which is unlikely to be a 
simple integer such as the exit code.

The general answer to the question is to write the output to a file, 
using the output attribute of the exec task.  Then use the loadfile task 
to read the file into a property.

But before doing that, first ask if the readregistry task solve the 
problem more easily?  Or is the search more complicated than that?

Gary

>-----Message d'origine-----
>De : Eric Fetzer [mailto:[EMAIL PROTECTED] 
>Envoyé : Tuesday, February 07, 2006 10:18 PM
>À : Nant Users
>Objet : [NAnt-users] Return from an <exec> call
>
>How would one go about running a program and gathering
>the return?  I'd like to do a search in the registry
>and get the result into a property using regfind.
>
>Thanks,
>Eric
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems?  Stop!  Download the new AJAX search engine that makes
>searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>_______________________________________________
>NAnt-users mailing list
>NAnt-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nant-users
>
>
>2006 - Maporama International 
>
>
>
>2006 - Maporama International - Outgoing mail scanned by BlackSpider
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems?  Stop!  Download the new AJAX search engine that makes
>searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
>_______________________________________________
>NAnt-users mailing list
>NAnt-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nant-users
>
>
>  
>




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


This Message Scanned for Viruses by McAfee WebShield .


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to