RE: Event Listeners
"Keith Schomburg \(kschombu\)" <[email protected]> Tue, 16 Aug 2005 08:56:12 -0400
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <8E296595B6471A4689555D5D725EBB217AC95F@xmb-rtp-20a.amer.cisco.com> |
I assume you mean the MessageEvent.isError() method indicates whether output should be sent to stdout or stderr? This is where the confusion comes in as the name isError implies that the result indicates whether the message is an error or not. The behavior is different than one would expect given the name. In light of this, how does one programatically using cvsclient determine if a given command (e.g. add, commit, remove, etc.) was successfully executed by the server? Thanks, Keith > -----Original Message----- > From: Milos Kleint [mailto:[email protected]] > Sent: Tuesday, August 16, 2005 2:49 AM > To: > Cc: Keith Schomburg (kschombu) > Subject: Re: [javacvs-dev] Event Listeners > > well, the client cannot really distinguish what is error and what is > not. The server reports the problem as either stdout or stderr. That's > what the events mirror. all you could do is come up with some pattern > based heiristics to figure out the "non"-errors. > > Milos > > On 8/11/05, Keith Schomburg <[email protected]> wrote: > > How do you distinguish a MessageEvent received by an event > listener as > > truly an error message? I noticed that all status type > messages (e.g. > > "cvs add: scheduling file ...", "cvs update: Updating ...", > etc.) are > > received and tagged as an error. I would not classify these type > > messages as error messages. > > > > Keith > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > >