Results 1 to 4 of 4
  1. #1
    testkiranpgp is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default 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.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,620
    Rep Power
    23

    Default Re: Running SVN commands through java program

    Have you looked at the Runtime and Process classes?
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    testkiranpgp is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default 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);

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,620
    Rep Power
    23

    Default 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?
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Running commands in cygwin(aspell) through java
    By nikhidas in forum Advanced Java
    Replies: 0
    Last Post: 06-22-2011, 08:24 PM
  2. java program for running the command prompt commands
    By leoanto in forum Advanced Java
    Replies: 2
    Last Post: 03-26-2011, 03:57 PM
  3. Replies: 25
    Last Post: 11-04-2010, 04:26 PM
  4. Need Help to Execute the commands from Java Program
    By Anjaneyulu in forum Advanced Java
    Replies: 7
    Last Post: 02-24-2010, 02:35 PM
  5. problems in running d command prompt commands
    By postaholic066 in forum Advanced Java
    Replies: 1
    Last Post: 09-10-2008, 03:47 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •