You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by APIT <an...@piterion.com> on 2008/04/16 11:49:24 UTC

svn blame command Line

I was trying to execute the svn blame from a Command line in Windows throw
this this code 
  
 String Command = "svn blame "+svnfileUrl;
                 Process svnblame = Runtime.getRuntime().exec(Command);
                 
                    BufferedReader Resultset = new BufferedReader(
                                    new InputStreamReader (
                                            svnblame.getInputStream()));
             
                    String line;
                    FileWriter file = new
FileWriter("C:\\SVNBlameCommad.txt");
                    file.write(Command);
                    while ((line = Resultset.readLine()) != null) {
                               file.write(line);
                            }
                    file.close();

I had no result from in the Text file
the connection is allrady made caus this code sample is called in an other
module that makes the connection 
Please Help  
-- 
View this message in context: http://www.nabble.com/svn-blame-command-Line-tp16721075p16721075.html
Sent from the Subversion Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: svn blame command Line

Posted by ni...@planet.nl.
Take a look at svnkit, which is a complete java api to Subversion [1]. That way you don't have to worry about svn commandline (is SVN installed, is SVN in the path, can I write my output somewhere, etc).

Hth,

Nick S.

[1] http://svnkit.com/


-----Original Message-----
From: APIT [mailto:anis.oueslati@piterion.com]
Sent: Wed 4/16/2008 13:49
To: users@subversion.tigris.org
Subject:  svn blame command Line
 

I was trying to execute the svn blame from a Command line in Windows throw
this this code 
  
 String Command = "svn blame "+svnfileUrl;
                 Process svnblame = Runtime.getRuntime().exec(Command);
                 
                    BufferedReader Resultset = new BufferedReader(
                                    new InputStreamReader (
                                            svnblame.getInputStream()));
             
                    String line;
                    FileWriter file = new
FileWriter("C:\\SVNBlameCommad.txt");
                    file.write(Command);
                    while ((line = Resultset.readLine()) != null) {
                               file.write(line);
                            }
                    file.close();

I had no result from in the Text file
the connection is allrady made caus this code sample is called in an other
module that makes the connection 
Please Help  
-- 
View this message in context: http://www.nabble.com/svn-blame-command-Line-tp16721075p16721075.html
Sent from the Subversion Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org