Re: [NAnt-users] Silent tasks?
Hi, I would vote for this feature too. The most of xmlpeek/poke output is annoying in my build scenario. Regards, Boni -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gary Feldman Sent: Montag, 17. Juli 2006 01:22 To: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] Silent tasks? Henning Eiben wrote: > I'm also using xmlpeek to read settings from an xml-file and xmlpoke > to modify the csproj-file for example. this also gives a load of > messages I don't really need to know. > > Especially xmlpeek gives a lot of messages about attributes that could > not be found (which is being expected and the build-file can handle > that :)), so I don't want this to raise "warnings" in my build-file. > > So I would really appreciate a quit-option for those tasks as well; > but I don't want to silent the complete build-file, because I would > like to know about warnings and errors in other tasks. > I wonder if what we need onsuccess, onfailure, and notfound attributes for xmlpeek and xmlpoke: onsuccess="verbose" : print full file path, full xpath , the value found for xmlpeek, both the old and new values for xmlpoke "quiet" : print nothing - this is the default "minimal" : print file name (not path), the value found for xmlpeek, the new value for xmlpoke onfailure="verbose" : same as onsuccess "quiet" : print nothing if the only problem is that the xpath doesn't match, but treat as an error if the file can't be read/written, or if there's a syntax error in the xpath "minimal" : similar to quiet, but print the same information as for onsuccess for the case where the xpath doesn't match notfound="fail" : Treat it as a failure if the xpath isn't found. This also changes the behavior of onfailure=quite/minimal notfound="ignore" : It's not an error if the xpath isn't found. This is the default, and doesn't affect the other items This is just an off-the-cuff first crack at it. I expect that folks will be able to improve upon it. Gary - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] Silent tasks?
Henning Eiben wrote: > I'm also using xmlpeek to read settings from an xml-file and xmlpoke to > modify the csproj-file for example. this also gives a load of messages I > don't really need to know. > > Especially xmlpeek gives a lot of messages about attributes that could > not be found (which is being expected and the build-file can handle that > :)), so I don't want this to raise "warnings" in my build-file. > > So I would really appreciate a quit-option for those tasks as well; but > I don't want to silent the complete build-file, because I would like to > know about warnings and errors in other tasks. > I wonder if what we need onsuccess, onfailure, and notfound attributes for xmlpeek and xmlpoke: onsuccess="verbose" : print full file path, full xpath , the value found for xmlpeek, both the old and new values for xmlpoke "quiet" : print nothing - this is the default "minimal" : print file name (not path), the value found for xmlpeek, the new value for xmlpoke onfailure="verbose" : same as onsuccess "quiet" : print nothing if the only problem is that the xpath doesn't match, but treat as an error if the file can't be read/written, or if there's a syntax error in the xpath "minimal" : similar to quiet, but print the same information as for onsuccess for the case where the xpath doesn't match notfound="fail" : Treat it as a failure if the xpath isn't found. This also changes the behavior of onfailure=quite/minimal notfound="ignore" : It's not an error if the xpath isn't found. This is the default, and doesn't affect the other items This is just an off-the-cuff first crack at it. I expect that folks will be able to improve upon it. Gary - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] Silent tasks?
Gary Feldman schrieb: >> Is there a way to silence tasks? If not, I would like to request the >> feature to be added... I really don't care to see 3 screens full of >> entries :-) A "silent" attribute could be added, or >> verbose="" extended to an enum where the default is the current >> verbosity and an option is added for full verbosity (currently >> verbose="true") as well as an option for silence (except with >> failonerror perhaps). >> > You can use the -quiet option on the NAnt command line, and judge for > yourself whether it also suppresses stuff you want to see. There is > already a verbose=attribute, which currently expects true or false, but > could be expanded to accept other options. > > However, in this particular case, the problem is that the xmlpoke task > is too verbose. On the other hand, if you're getting three screens of > this, then perhaps the xmlpoke task isn't the right way to do things, as > it would be rewriting the target file each time. I'm also using xmlpeek to read settings from an xml-file and xmlpoke to modify the csproj-file for example. this also gives a load of messages I don't really need to know. Especially xmlpeek gives a lot of messages about attributes that could not be found (which is being expected and the build-file can handle that :)), so I don't want this to raise "warnings" in my build-file. So I would really appreciate a quit-option for those tasks as well; but I don't want to silent the complete build-file, because I would like to know about warnings and errors in other tasks. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] Silent tasks?
Eric wrote: > Is there a way to silence tasks? If not, I would like to request the > feature to be added... I really don't care to see 3 screens full of > entries :-) A "silent" attribute could be added, or > verbose="" extended to an enum where the default is the current > verbosity and an option is added for full verbosity (currently > verbose="true") as well as an option for silence (except with > failonerror perhaps). > You can use the -quiet option on the NAnt command line, and judge for yourself whether it also suppresses stuff you want to see. There is already a verbose=attribute, which currently expects true or false, but could be expanded to accept other options. However, in this particular case, the problem is that the xmlpoke task is too verbose. On the other hand, if you're getting three screens of this, then perhaps the xmlpoke task isn't the right way to do things, as it would be rewriting the target file each time. Gary Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users