Class ScmFileEventHandler

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

    public class ScmFileEventHandler
    extends Object
    implements org.tmatesoft.svn.core.wc.ISVNEventHandler
    ISVNStatusHandler implementation for most scm commands. Creates a list of ScmFile objects and determines the ScmFileStatus from the SVNEvent.getExpectedAction().
    Version:
    $Id: ScmFileEventHandler.java 487 2011-01-03 20:40:44Z oliver.lamy $
    Author:
    David Hawkins, Olivier Lamy
    • Field Summary

      • Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller

        NULL
      • Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler

        UNKNOWN
    • Constructor Summary

      Constructors 
      Constructor Description
      ScmFileEventHandler​(org.apache.maven.scm.log.ScmLogger logger, File baseDirectory)
      The logger is used in alerting the user to unknown file statuses.
    • Constructor Detail

      • ScmFileEventHandler

        public ScmFileEventHandler​(org.apache.maven.scm.log.ScmLogger logger,
                                   File baseDirectory)
        The logger is used in alerting the user to unknown file statuses.
    • Method Detail

      • handleEvent

        public void handleEvent​(org.tmatesoft.svn.core.wc.SVNEvent event,
                                double progress)
        Creates a ScmFile for each event with the exception of directories. Directory events are ignored.
        Specified by:
        handleEvent in interface org.tmatesoft.svn.core.wc.ISVNEventHandler
      • checkCancelled

        public void checkCancelled()
                            throws org.tmatesoft.svn.core.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()
        Returns the list of files collected from handling events.
        Returns:
        a list of ScmFile objects