C.27 HgCloneTask

Make a copy of an existing Mercurial repository. This is available for PHP 5.4 and higher.

Table C.28: Attributes

NameTypeDescriptionDefaultRequired
insecureBooleanDo not verify server certificate.falseNo
repositoryStringPath to Mercurial repository.n/aYes
targetPathStringDirectory to clone into.n/aYes
quietBooleanWork silently unless an error occurs.falseNo

C.27.1 Example

<property name="repo.dir" value="./repo.directory" />
<property name="repo.url" value="https://bitbucket.org/spaetz/ceyx-mapcss" />
<resolvepath propertyName="repo.dir.resolved" file="${repo.dir}" />
<hgclone repository="${repo.url}" quiet="false" insecure="true" targetPath="${repo.dir.resolved}"/>