C.78 SvnCommitTask

The SvnCommitTask commits a local working copy to a SVN repository and sets the specified property ( default svn.committedrevision) to the revision number of the committed revision.

Table C.104: Attributes

NameTypeDescriptionDefaultRequired
svnpathStringPath to Subversion binary/usr/bin/svnNo
usernameStringA username used to connect to the SVN servernoneNo
passwordStringA password used to connect to the SVN servernoneNo
nocacheBooleanConnection credentials will not be cachedfalseNo
depthStringLimit operation by depthempty, files, immediates or infinityNo
workingcopyStringWorking copynoneYes
messageStringThe commit messagenoneYes
ignoreexternalsBooleanIgnore externals definitionsfalseNo
trustServerCertBooleanTrust self-signed certificatesfalseNo
propertynameStringName of property to set to the last committed revision numbersvn.committedrevisionNo
configOptionStringOverride subversion's config optionn/aNo

C.78.1 Example

<svncommit
    svnpath="/usr/bin/svn"
    username="anony"
    password="anony"
    nocache="true"
    workingcopy="/home/joe/dev/project"
    message="Updated documentation, fixed typos" />

The most basic usage only needs the working copy and the commit message as in

<svncommit
    workingcopy="/home/joe/dev/project"
    message="Updated documentation, fixed typos" />
<echo message="Committed revision: ${svn.committedrevision}"/>