Running SVN commands through java program
Hi Folks.
I want to read all the commands of SVN commands like checkout ,add,update,commit throgh java application .
and i dont want to use any Java API like SVNKit and etc.. I want to use just SVN commands in my java application so that i can checkout ,add,update and commit the files in SVN server using local working copy.
Please suggest a simple code for the above same.
Thanks in Advance.
Re: Running SVN commands through java program
Have you looked at the Runtime and Process classes?
Re: Running SVN commands through java program
Below is the code using Runtime class and its not working properly..Please gv me some view and code how to run the same using Process class?
String addCommand = "svn add D:/svnco/* --force";
Process p3 = Runtime.getRuntime().exec(addCommand);
String commitCommand = "svn commit -m 'addingfiles' D:/svnco/* --force" ;
Process p4 = Runtime.getRuntime().exec(commitCommand);
Re: Running SVN commands through java program
Are there any error messages?
Did you read and print the contents of the error streams available from the Process class?