Here is  xml::peek function.

It internally uses XmlPeek task which writes info message to screen and this
could not be suppresed. Verbosity is next area I want to revise.

Patch is against 31/12 nightly.

Martin

----- Original Message ----- 
From: "Ivan Tarasov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Martin Aliger"
<[EMAIL PROTECTED]>
Cc: "! nant" <[EMAIL PROTECTED]>
Sent: Tuesday, January 06, 2004 3:56 PM
Subject: Re: [nant-dev] new xml type


> Hello Martin,
>
> It's a good idea, still it is a bit complicated to deal with xmlpeek,
> if you need a single value. Surely, function will help a lot.
>
> MA> What I want to do is something James and Ivan also proposed: add some
way to
> MA> return information from task back to script. I dont think that add
> MA> resultproperty/outputproperty to exec task and other
whateverproperties to
> MA> other tasks is good way. What I want to do is add one general
attribute
> MA> (e.g. result) to all tasks. Result itself will be xml dom with
potentionaly
> MA> many values. exec task could for example have in it full commandline
> MA> executed, result code, stdout, stderr and maybe even more things! So
it
> MA> could be written something like this:
>
> MA>     <exec
program="${csprojconv.dir}\Gordic.Develop.CsprojConverter.exe"
> MA> commandline="${foldername}\${folder}.csproj ${version}" result="res1"
/>
> MA>     <xmlpeek refid="res1" xpath="output/resultcode"
property="resultcode"/>
> MA>     <if test="${resultcode>2}">
> MA>         <fail message="serious CsprojConverter error"/>
> MA>     </if>
>
> MA> or even shorter when function for xmlpeek exists!
>
> -- 
> Best regards,
>  Ivan                            mailto:[EMAIL PROTECTED]
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> nant-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers
>

Attachment: XmlFunctions.cs
Description: Binary data

Attachment: XmlPeekTask.cs.patch
Description: Binary data

Reply via email to