Trying to checkout file from svn using java code(svn cli) -
this trying do: 1) take svn url input user 2) take svn username input 3) take svn username input 4) take directory path checkout needs done input
now, passing checkout command cmd prompt through java code.somehow, file if not getting checked out through java code, on running same command on cmd prompt able checkout file.pfb code running.
runtime rt = runtime.getruntime(); rt.exec("cmd.exe /c start "+"svn co 'http://testing//its_r2_final_1.0_14feb' -- username 12345 --password 'abc@mar14' --non-interactive", null, new file ("d://test_svn")); rt.wait(1700);
please help.
point noted here when dont use non-interactive opens command prompts username , password,once provide credentials,it checks out fine.
Comments
Post a Comment