Re: how to intercept CVS Events from other netbeansmodule ?
Thomas Singer <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
Think about, the OK response is sent at least two times, after valid-requests and when the command finished. IMHO the best strategy would be to check whether the last response was an ok response. Tom At 15:34 16.05.02 +0200, you wrote: >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