Problem on class ProcessBuilder
807580Jun 10 2010 — edited Jun 11 2010Hi,
I have a bunch of system commands called by a java program using class ProcessBuilder. I got a problem to call "svn checkout". The machine is running on XP. Here is the code
java.lang.ProcessBuilder pb = null;
java.lang.Process p = null;
String svn_checkout = "svn checkout http://server.com/svn/repo";
pb = new ProcessBuilder("cmd.exe", "/C", svn_checkout);
p = pb.start();
...
The problem is: when I checkout a svn work copy from the scratch, i.e., no work copy exists, then the process is very slow. I use Process Explorer to examine the process (svn.exe) then I find the process created by java does not take any CPU resource. It seems that it sits there but not working.
If I checkout a work copy then run the java program then everything is fine. Anybody knows what's the reason? Thanks.
Majere