Calling SCM via Java
Hey folks,
I'm writing a Java application to call the RTC scm command line client to login, create workspaces, and load data.
I'm using the Java Process and ProcessBuilder classes for this.
The issue I'm running into, is that I'm losing the error messages. Process
I'm writing a Java application to call the RTC scm command line client to login, create workspaces, and load data.
I'm using the Java Process and ProcessBuilder classes for this.
The issue I'm running into, is that I'm losing the error messages. Process
getInputStream(), along with a call to ProcessBuilder.redirectErrorStream(true).
When I call "scm create workspace -r <ourjazzuri> "workspacename", there's a problem, and I get "problem running 'create workspace':, but no information is added.
The returnCode from running that command is 25. Anyone know why I'm not getting the info?
Thanks a million,
Chris
One answer
I found this page, so I now know what error code 25 means, but I'm still unsure how to get the appropriate error messages via Java.
http://stackoverflow.com/questions/14165517/processbuilder-forwarding-stdout-and-stderr-of-started-processes-without-blocki
Comments
1 vote