Class SvnStatusHandler

  • All Implemented Interfaces:
    org.tmatesoft.svn.core.ISVNCanceller, org.tmatesoft.svn.core.wc.ISVNEventHandler, org.tmatesoft.svn.core.wc.ISVNStatusHandler

    public class SvnStatusHandler
    extends Object
    implements org.tmatesoft.svn.core.wc.ISVNStatusHandler, org.tmatesoft.svn.core.wc.ISVNEventHandler
    ISVNStatusHandler implementation for status events. Converts the SVNStatus file status to a ScmFileStatus

    The structure and comments in this method were taken from the tmate.org example file: org.tmatesoft.svn.examples.wc.StatusHandler

    Author:
    David Hawkins
    • Constructor Detail

      • SvnStatusHandler

        public SvnStatusHandler​(File baseDir)
    • Method Detail

      • handleStatus

        public void handleStatus​(org.tmatesoft.svn.core.wc.SVNStatus status)
        Specified by:
        handleStatus in interface org.tmatesoft.svn.core.wc.ISVNStatusHandler
      • handleEvent

        public void handleEvent​(org.tmatesoft.svn.core.wc.SVNEvent event,
                                double progress)
        This is an implementation for ISVNEventHandler.handleEvent(SVNEvent event, double progress)
        Specified by:
        handleEvent in interface org.tmatesoft.svn.core.wc.ISVNEventHandler
      • checkCancelled

        public void checkCancelled()
                            throws org.tmatesoft.svn.core.SVNCancelException
        Should be implemented to check if the current operation is cancelled. If it is, this method should throw an SVNCancelException.
        Specified by:
        checkCancelled in interface org.tmatesoft.svn.core.ISVNCanceller
        Throws:
        org.tmatesoft.svn.core.SVNCancelException
      • getFiles

        public List<org.apache.maven.scm.ScmFile> getFiles()