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
Name | Type | Description | Default | Required |
---|---|---|---|---|
svnpath | String | Path to Subversion binary | /usr/bin/svn | No |
username | String | A username used to connect to the SVN server | none | No |
password | String | A password used to connect to the SVN server | none | No |
nocache | Boolean | Connection credentials will not be cached | false | No |
depth | String | Limit operation by depth | empty ,
files ,
immediates or
infinity | No |
workingcopy | String | Working copy | none | Yes |
message | String | The commit message | none | Yes |
ignoreexternals | Boolean | Ignore externals definitions | false | No |
trustServerCert | Boolean | Trust self-signed certificates | false | No |
propertyname | String | Name of property to set to the last committed revision number | svn.committedrevision | No |
configOption | String | Override subversion's config option | n/a | No |
<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}"/>