Re: how to intercept CVS Events from other netbeansmodule ?

Milos Kleint <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Message-ID <[email protected]>
Nikolov. Dragomir wrote:
> Hello!
> 
> Does anybody know how to find out if a CVS command fails.
> Currently I am using Listener and check the MessageEvent.isError()
> on invocation of the messageSent(MessageEvent event) method, but it
> seems
> that it reports errors even if the operation succeeds.


CVSListener.commandTerminated() is the method for figuring out if the command was ok or not..
Beware that diff succeeds if no changes are found and fails if there are any changes.

The messageEvent.isError() just states if the message should be printed to stdout or stderr. it's 
just a level of messaging.. on the command-line the global switches -Q, -q then determine what is 
printed


Regards Milos

> 
> Best Regards,
> Dragomir
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.