0

I'm running a Java (.jar) program from a bat script that near the end has the following (on windows)

Runtime.getRuntime().exec("svn co http://myrepository.com/someproj");
Thread.sleep(20000);

It checks out about 1/10th of the directories and 1 file and then it does nothing. I suspect the reason it is pausing on the file but I couldn't find anything. The bat script is run as an administrator.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
David Witherspoon
  • 673
  • 2
  • 6
  • 13

1 Answers1

2

A common reason for an exec command to block is that it is either waiting for input from the parent process (or the console), or blocked because the parent process is not reading the child processes standard output or error stream.

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216