AW: Return value of an executed cvs command from a jsp page
"Hildenbrand, Alexander" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
Thanx for the quick response, it helps, but there are still some open questions. How can I fetch all the stdout/sterr messages in a jsp-Page? Are the messages sent immediately so that I can get the messages from such a listener right after the execution of the command? Best regards Alexander Hildenbrand ---------------------------------------------------------------------------- ------------------------- Hello. you can attach the CVSListener to teh command that will send you all the messages. These messages are separated in 2 groups: one are considered informational and are sent to stdout by command-line cvs. some are sent to stderr and could be considered "errors". However they are partly also informational. The global switches -Q and -q are meant to regulate what's sent (-q results in ommiting the stdout output and sending just sterr output). The stderr/stdout indication is handled in the MessageEvent class. The error handling is quite a mess in cvs protocol and is generally targeted at command-line usage and assumes user will know what's going on. It's not well suited from machine/automatic processing. Each command ends with "ok" or "error" response.. even when generally useful, they have strange semantics for the diff command (error means there were differences found) sometime it can even happen that the server closes connection without *any* error message. The command line cvs prints out that the server closed connection and you should consult previous messages, "if any".. Does it help? Milos --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]