tasks/ext/svn/SvnBaseTask.php

Show: inherited
Table of Contents

Base class for Subversion tasks

Author
Michiel Rook  
Author
Andrew Eddie  
Package
phing.tasks.ext.svn  
See
\VersionControl_SVN  
Since
2.2.0  
Version
$Id: SvnBaseTask.php 1391 2011-12-17 14:42:15Z mrook $  

\SvnBaseTask

Package: phing\tasks\ext\svn

Base class for Subversion tasks

Parent(s)
\Task < \ProjectComponent
Children
\SvnCopyTask
\SvnLogTask
\SvnSwitchTask
\SvnCheckoutTask
\SvnListTask
\SvnCommitTask
\SvnExportTask
\SvnUpdateTask
\SvnLastRevisionTask
See
\VersionControl_SVN  
Author
Michiel Rook  
Author
Andrew Eddie  
Since
2.2.0  
Version
$Id: SvnBaseTask.php 1391 2011-12-17 14:42:15Z mrook $  

Properties

Propertyprivate  $mode= '""'
Default value""Details
Type
n/a
Propertyprivate  $repositoryUrl= '""'
Default value""Details
Type
n/a
Propertyprivate  $svn= 'NULL'
Default valueNULLDetails
Type
n/a
Propertyprivate  $svnArgs= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $svnPath= '"/usr/bin/svn"'
Default value"/usr/bin/svn"Details
Type
n/a
Propertyprivate  $svnSwitches= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $toDir= '""'
Default value""Details
Type
n/a
Propertyprivate  $workingCopy= '""'
Default value""Details
Type
n/a

Methods

methodpublicgetDescription( ) : void

methodpublicgetForce( ) : void

Returns the force switch

methodpublicgetIgnoreExternals( ) : void

Returns the ignore-externals switch

methodpublicgetLocation( ) : void

methodpublicgetNoCache( ) : void

Returns the no-auth-cache switch

methodpublicgetOwningTarget( ) : void

methodpublicgetPassword( ) : void

Returns the password

methodpublicgetProject( ) : void

methodpublicgetRecursive( ) : void

Returns the non-recursive switch

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRepositoryUrl( ) : void

Returns the path/URI to the repository

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetSvnPath( ) : void

Returns the path to the SVN executable

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicgetToDir( ) : void

Returns the path to export/checkout to

methodpublicgetTrustServerCert( ) : void

Returns the trust-server-cert switch

methodpublicgetUsername( ) : void

Returns the username

methodpublicgetWorkingCopy( ) : void

Returns the path to the workingcopy

methodpublicinit( ) : void

Initialize Task.

This method includes any necessary SVN libraries and triggers appropriate error if they cannot be found. This is not done in header because we may want this class to be loaded w/o triggering an error.

methodpubliclog( ) : void

methodpublicmain( ) : void
abstract

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodprotectedrun( array $args = array(), array $switches = array() ) : string

Executes the constructed VersionControl_SVN instance

Parameters
Name Type Description
$args array

Additional arguments to pass to SVN.

$switches array

Switches to pass to SVN.

Returns
Type Description
string Output generated by SVN.
methodpublicsetDescription( ) : void

methodpublicsetForce(  $value ) : void

Sets the force switch

Parameters
Name Type Description
$value
methodpublicsetIgnoreExternals(  $value ) : void

Sets the ignore-externals switch

Parameters
Name Type Description
$value
methodpublicsetLocation( ) : void

methodpublicsetNoCache(  $value ) : void

Sets the no-auth-cache switch

Parameters
Name Type Description
$value
methodpublicsetOwningTarget( ) : void

methodpublicsetPassword(  $value ) : void

Sets the password of the user to export

Parameters
Name Type Description
$value
methodpublicsetProject( ) : void

methodpublicsetRecursive(  $value ) : void

Sets the non-recursive switch

Parameters
Name Type Description
$value
methodpublicsetRepositoryUrl(  $repositoryUrl ) : void

Sets the path/URI to the repository

Parameters
Name Type Description
$repositoryUrl
methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetSvnPath(  $svnPath ) : void

Sets the path to the SVN executable

Parameters
Name Type Description
$svnPath
methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodpublicsetToDir(  $toDir ) : void

Sets the path to export/checkout to

Parameters
Name Type Description
$toDir
methodpublicsetTrustServerCert(  $value ) : void

Sets the trust-server-cert switch

Parameters
Name Type Description
$value
methodpublicsetUsername(  $value ) : void

Sets the username of the user to export

Parameters
Name Type Description
$value
methodpublicsetWorkingCopy(  $workingCopy ) : void

Sets the path to the workingcopy

Parameters
Name Type Description
$workingCopy
methodprotectedsetup( string $mode ) : void

Creates a VersionControl_SVN class based on $mode

Parameters
Name Type Description
$mode string

The SVN mode to use (info, export, checkout, ...)

Throws
Exception Description
\BuildException
Documentation was generated by DocBlox 0.17.1.