This is so it can be called and assigned to a property within NAnt (ie. I don't want any task to run, just a value returned which is wht it's a function and not a task):
Code: Select all
<property name="build.version.revision" value="${vault::getversion(vault.url, vault.repository, vault.path, vault.username, vault.password)}"/>
I thought I'd share it in case anyone else finds it useful - I don't know what the procedure is for adding it to the Vault NAnt Tasks project (which I've done on my own copy)?