org.schmant.task.svnkit
Class SvnUrlToUrlCopyTask

java.lang.Object
  extended by org.schmant.support.AbstractArgumentChecker
      extended by org.schmant.task.stub.AbstractTask<T>
          extended by org.schmant.task.svnkit.AbstractSvnTask<T>
              extended by org.schmant.task.svnkit.AbstractSvnCommitTask<SvnUrlToUrlCopyTask>
                  extended by org.schmant.task.svnkit.SvnUrlToUrlCopyTask
All Implemented Interfaces:
TaskDependency, LoggingConfigurable<SvnUrlToUrlCopyTask>, Task, TaskRunnable, TaskSpecification<SvnUrlToUrlCopyTask>

public final class SvnUrlToUrlCopyTask
extends AbstractSvnCommitTask<SvnUrlToUrlCopyTask>

Copy the contents from one repository URL to another within the same Subversion repository.

See SvnUrlToUrlCopyTF

Since:
0.7
Author:
Karl Gustafsson
Task_package:
org.tmatesoft.svn

Method Summary
 void copyProperties(SvnUrlToUrlCopyTask spec)
          Copy the properties to the target object.
protected  String getDefaultLogFooter()
          Get the default log footer to log after the task has been successfully run if no other log footer is set.
protected  String getDefaultLogHeader()
          Get the default log header to log (to level INFO) before the task is run if the task user has not set a custom header.
protected  void runInternal(Report r)
          Subclasses implement this.
 String toString()
          Default implementation for tasks.
protected  Collection<String> validate(Report r)
          This method may be overridden by subclasses to validate their configuration (including their TaskFactory:s) before the task is run.
 
Methods inherited from class org.schmant.task.svnkit.AbstractSvnCommitTask
getCommitMessage
 
Methods inherited from class org.schmant.task.svnkit.AbstractSvnTask
getAuthenticationManager, getAuthenticationProvider, getRepositoryLocation
 
Methods inherited from class org.schmant.task.stub.AbstractTask
cancel, createTask, getDependencyForTasksScheduledByThisTask, getDependencyObservable, getFailureCause, getLogFooter, getLogHeader, getSatisfiedStateLock, getThis, isCancelled, isDone, isInterrupted, isRunning, isSatisfied, isSuccessful, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging
 
Methods inherited from class org.schmant.support.AbstractArgumentChecker
check, check, check, check
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDefaultLogHeader

protected String getDefaultLogHeader()
Description copied from class: AbstractTask
Get the default log header to log (to level INFO) before the task is run if the task user has not set a custom header. Subclasses may override this to return better headers.

This is called after validating the task.

Return null to disable logging.

Overrides:
getDefaultLogHeader in class AbstractTask<SvnUrlToUrlCopyTask>
Returns:
"Running " + toString()

getDefaultLogFooter

protected String getDefaultLogFooter()
Description copied from class: AbstractTask
Get the default log footer to log after the task has been successfully run if no other log footer is set. This implementation returns null (= no logging). Subclasses may override this to return something else.

Overrides:
getDefaultLogFooter in class AbstractTask<SvnUrlToUrlCopyTask>
Returns:
null

validate

protected Collection<String> validate(Report r)
Description copied from class: AbstractTask
This method may be overridden by subclasses to validate their configuration (including their TaskFactory:s) before the task is run.

Validation errors are collected as strings. If this method is overridden, always call super.validate.

Overrides:
validate in class AbstractSvnTask<SvnUrlToUrlCopyTask>
Parameters:
r - A report to log warning and debug messages to. Validation errors should not be logged, though. They are logged later.
Returns:
A collection of error messages.

runInternal

protected void runInternal(Report r)
Description copied from class: AbstractTask
Subclasses implement this. The task is AbstractTask.validate(Report):d before this method is called, see AbstractTask.run().

Specified by:
runInternal in class AbstractTask<SvnUrlToUrlCopyTask>
Parameters:
r - The current thread's Report.

copyProperties

public void copyProperties(SvnUrlToUrlCopyTask spec)
Description copied from class: AbstractTask
Copy the properties to the target object.

Subclasses must override this to copy their properties. The overriding method must call super.copyProperties.

Specified by:
copyProperties in interface TaskSpecification<SvnUrlToUrlCopyTask>
Overrides:
copyProperties in class AbstractSvnCommitTask<SvnUrlToUrlCopyTask>
Parameters:
spec - The specification to copy properties to.

toString

public String toString()
Description copied from class: AbstractTask
Default implementation for tasks. Task implementations may override this. It is used in the default log header that is written (level INFO) before a task is run.

This implementation just returns the class name.

Overrides:
toString in class AbstractTask<SvnUrlToUrlCopyTask>