Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8181513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:32:59+00:00 2026-06-07T00:32:59+00:00

I am currently working on a project about calculations.I have done the main part

  • 0

I am currently working on a project about calculations.I have done the main part of my project,Also integrated SVN Commit function to my code (using .ini file to read the specific address etc. )

I can easily Commit the files, what I am trying is I want to implement the real-time log to my console. Is there any way to implement the log to the console ? Not the general log but the commit log which should be real time.

  • I am using eclipse for mac, I’ve heard about SVNKit but I am really poor about SVN.

Thanks in advance for any information

— EDIT —

This is the code for reading the svn commands from .ini file

public static String iniSVNOkut(String deger, String getObje, String fetchObje){

        Ini uzantilariAlIni = null;

        try 
        {
            String uzantiAyarlari = "Uzantilar.ini";    

            try 
            {
                uzantilariAlIni = new Ini(new FileReader(uzantiAyarlari));
            }
            catch (InvalidFileFormatException e)
            {
                System.err.print("Hata InvalidFileFormat : " + e.getMessage() + "\n" );
                e.printStackTrace();
            }
            catch(FileNotFoundException e)
            {
                System.err.print("Hata FileNotFoundException : " + e.getMessage() + "\n" );
                e.printStackTrace();
            }
            catch (IOException e)
            {
                System.err.print("Hata IOException : " + e.getMessage() + "\n" );
                e.printStackTrace();
            }
        return  deger = uzantilariAlIni.get(getObje).fetch(fetchObje);


        } 
        finally 
        {

        }

    }

This is what .ini includes

[svnAdresi]
svnAdresiniAl = svn co http://svn.svnkit.com/repos/svnkit/trunk/ /Users/sample/Documents/workspace/SatirHesaplaGUI/svnTestMAC

This is how I call it

String svnAdresi;
        svnAdresi = IniFonksiyon.iniSVNOkut(svnAdresi, "svnAdresi", "svnAdresiniAl");
    Runtime cmdCalistir = Runtime.getRuntime();

    try
    {
        Process islem = cmdCalistir.exec(svnAdresi);
    }
    catch (Exception e)
    {
        e.printStackTrace();
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T00:33:02+00:00Added an answer on June 7, 2026 at 12:33 am

    If I understand your question correctly, you want to read the Subversion commit log into your console application.

    The easiest way is to use SVNKit.

    Here’s how I did it.

    private static List<SVNLogEntry> logEntryList;
    
        /*
         * Gets the Subversion log records for the directory
         */
        LogHandler handler = new LogHandler();
        String[] paths = { directory };
        try {
            repository.log(paths, latestRevision, 1L, false, true, handler);
        } catch (SVNException svne) {
            if (svne.getMessage().contains("not found")) {
                logEntryList = new ArrayList<SVNLogEntry>();
            } else {
                CobolSupportLog.logError(
                        "Error while fetching the repository history: "
                                + svne.getMessage(), svne);
                return false;
            }
        }
    
        logEntryList = handler.getLogEntries();
    
    • directory – string pointing to a particular directory or module
    • latestRevision – largest revision number from Subversion. Placing the latestRevision second in the log method invocation returns the log records in most recent order.

    If you want the log records in sequential order, from 1 to latestRevision, then the 1L would be placed second, and the latestRevision would be placed third.

    • repository – Subversion repository that you’ve already authenticated.

    Here’s LogHandler.

    public class LogHandler implements ISVNLogEntryHandler {
    
        protected static final int REVISION_LIMIT = 5;
    
        protected List<SVNLogEntry> logEntryList;
    
        public LogHandler() {
            logEntryList = new ArrayList<SVNLogEntry>();
        }
    
        public void handleLogEntry(SVNLogEntry logEntry) throws SVNException {
            logEntryList.add(logEntry); 
        }
    
        public List<SVNLogEntry> getLogEntries() {
            if (logEntryList.size() <= REVISION_LIMIT) {
                return logEntryList;
            } else {
                return logEntryList.subList(0, REVISION_LIMIT);
            }
        }
    
    }  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on a project about social networking, where I have some problems
I am currently working on project about car travelling http://wayfi.ru and I have encountered
I am currently working on grails project. I have created eight different plugins. Each
I'm currently working on a project where we have a large data warehouse which
I am currently working on a project where i need to have an in
I'm currently working on a project in which there are about 20 c source
I'm currently working on a C++ project which does numerical calculations. The vast, vast
I am currently working on a project about taxis. I want to display some
I am currently working on a project in C#. I have a method called
I am currently working on a project that will store specific financial information about

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.