Wednesday, June 20, 2007

SvnAnt Recipe

When you want to use SvnAnt, you have to put svnant.jar, svnClientAdapter.jar and svnjavahl.jar (if you have not explicitly set javahl="false" in your svn-call) in your ANT_HOME directory.
Next is to announce the usage of svn in your Ant-File:

<taskdef resource="svntask.properties">

But this all doesn't work, if you haven't put your subversion bin directory to your PATH Variable.
When you have forgotten this you get the error-Message:
"Cannot use javahl nor command line svn client"

Usage of the svn task is then for example:

<svn username="user" password="secret" javahl="false">
<checkout url="https://checkout.com" destpath="//destPath"/>
</checkout>

No comments: