how to get the exact cvs command error when client's executeCommand failed
Prasanna <[email protected]> Thu, 03 Jan 2008 21:36:29 +0530
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Organization | Adventnet |
| Message-ID | <[email protected]> |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Hi,<br> <br> I am using NetBeans Api in my product to do CVS operations.<br> <br> I need to capture the exceptions and errors while doing CVS operations.<br> <br> By means of executeCommand() in Client.java, i used to execute CVS rlog commands (RlogCommand).<br> <br> I can able to get the status of the command using RlogCommand.hasFailed() method.<br> <br> But i cannot able to get the exact log message.<br> <br> For ex: If the cvs rlog command failed due to permission denied, or module not exists, then those errors are not captured in the below exceptions<br> CommandAbortedException.<br> CommandException<br> <br> How could i get those errors, i had created a listener named commandTerminated with the argument of TerminationEvent.<br> <br> I can able to get the ErrorResponse, but cant able to get the exact error.<br> <br> If any one faced the same problem, please show some light over this, it would be more helpful to me.<br> <br> I got the below error response in the commandTerminated event.<br> <br> org.netbeans.lib.cvsclient.response.OKResponse@1ccb029<br> org.netbeans.lib.cvsclient.response.ErrorResponse@121cc40<br> <br> Thanks & Regards,<br> Prasanna N <div class="moz-signature"><br> <!--a href="http://cvsmanager">http://cvsmanager</a--> </div> <div class="moz-signature">-- <br> Thanks & Regards,<br> N Prasanna<br> <!--a href="http://cvsmanager">http://cvsmanager</a--> </div> </body> </html>