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 java.lang.Object implements org.tmatesoft.svn.core.wc.ISVNEventHandlerISVNStatusHandlerimplementation for most scm commands. Creates a list ofScmFileobjects and determines theScmFileStatusfrom theSVNEvent.getExpectedAction().- Version:
- $Id: ScmFileEventHandler.java 487 2011-01-03 20:40:44Z oliver.lamy $
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.FilebaseDirectoryprivate java.util.List<org.apache.maven.scm.ScmFile>filesprivate org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description ScmFileEventHandler(org.slf4j.Logger logger, java.io.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 voidcheckCancelled()java.util.List<org.apache.maven.scm.ScmFile>getFiles()Returns the list of files collected from handling events.voidhandleEvent(org.tmatesoft.svn.core.wc.SVNEvent event, double progress)Creates aScmFilefor each event with the exception of directories.
-
-
-
Method Detail
-
handleEvent
public void handleEvent(org.tmatesoft.svn.core.wc.SVNEvent event, double progress)Creates aScmFilefor each event with the exception of directories. Directory events are ignored.- Specified by:
handleEventin interfaceorg.tmatesoft.svn.core.wc.ISVNEventHandler
-
checkCancelled
public void checkCancelled() throws org.tmatesoft.svn.core.SVNCancelException- Specified by:
checkCancelledin interfaceorg.tmatesoft.svn.core.ISVNCanceller- Throws:
org.tmatesoft.svn.core.SVNCancelException
-
getFiles
public java.util.List<org.apache.maven.scm.ScmFile> getFiles()
Returns the list of files collected from handling events.- Returns:
- a list of
ScmFileobjects
-
-