Class ScmFileEventHandler
- java.lang.Object
-
- org.apache.maven.scm.provider.svn.svnjava.util.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 ofScmFile
objects and determines theScmFileStatus
from theSVNEvent.getExpectedAction()
.- Version:
- $Id: ScmFileEventHandler.java 487 2011-01-03 20:40:44Z oliver.lamy $
- Author:
- David Hawkins, Olivier Lamy
-
-
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkCancelled()
List<org.apache.maven.scm.ScmFile>
getFiles()
Returns the list of files collected from handling events.void
handleEvent(org.tmatesoft.svn.core.wc.SVNEvent event, double progress)
Creates aScmFile
for each event with the exception of directories.
-
-
-
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 aScmFile
for each event with the exception of directories. Directory events are ignored.- Specified by:
handleEvent
in interfaceorg.tmatesoft.svn.core.wc.ISVNEventHandler
-
checkCancelled
public void checkCancelled() throws org.tmatesoft.svn.core.SVNCancelException
- Specified by:
checkCancelled
in interfaceorg.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
-
-