hudson.scm
Class SubversionEventHandlerImpl

java.lang.Object
  extended by org.tmatesoft.svn.core.wc.SVNEventAdapter
      extended by hudson.scm.SubversionEventHandlerImpl
All Implemented Interfaces:
org.tmatesoft.svn.core.ISVNCanceller, org.tmatesoft.svn.core.wc.ISVNEventHandler

public class SubversionEventHandlerImpl
extends org.tmatesoft.svn.core.wc.SVNEventAdapter

ISVNEventHandler that emulates the SVN CLI behavior.

Author:
Kohsuke Kawaguchi

Field Summary
protected  java.io.File baseDir
           
protected  java.io.PrintStream out
           
 
Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN
 
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULL
 
Constructor Summary
SubversionEventHandlerImpl(java.io.PrintStream out, java.io.File baseDir)
           
 
Method Summary
static java.lang.String getLocalPath(java.lang.String path)
           
 java.lang.String getRelativePath(java.io.File file)
           
 void handleEvent(org.tmatesoft.svn.core.wc.SVNEvent event, double progress)
           
 
Methods inherited from class org.tmatesoft.svn.core.wc.SVNEventAdapter
checkCancelled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected final java.io.PrintStream out

baseDir

protected final java.io.File baseDir
Constructor Detail

SubversionEventHandlerImpl

public SubversionEventHandlerImpl(java.io.PrintStream out,
                                  java.io.File baseDir)
Method Detail

handleEvent

public void handleEvent(org.tmatesoft.svn.core.wc.SVNEvent event,
                        double progress)
                 throws org.tmatesoft.svn.core.SVNException
Specified by:
handleEvent in interface org.tmatesoft.svn.core.wc.ISVNEventHandler
Overrides:
handleEvent in class org.tmatesoft.svn.core.wc.SVNEventAdapter
Throws:
org.tmatesoft.svn.core.SVNException

getRelativePath

public java.lang.String getRelativePath(java.io.File file)
                                 throws java.io.IOException
Throws:
java.io.IOException

getLocalPath

public static java.lang.String getLocalPath(java.lang.String path)


Copyright © 2011. All Rights Reserved.