1 | SvnAnt
|
---|
2 | ======
|
---|
3 | You can find latest version of svnant on http://subclipse.tigris.org
|
---|
4 |
|
---|
5 | Installation
|
---|
6 | ============
|
---|
7 | Put the svnant.jar and svnClientAdapter.jar files to classpath of your ant build file.
|
---|
8 | (Or directly to your ANT_HOME/lib directory.)
|
---|
9 | If you plan to use JavaHL instead of commandline, put the svnjavahl.jar to the classpath too.
|
---|
10 | (An of course put the appropriate native OS library on your PATH/LD_PATH too)
|
---|
11 |
|
---|
12 | In the build file, load the <svn> task.
|
---|
13 | E.g. like this:
|
---|
14 | <taskdef resource="svntask.properties" classpathref="project.classpath"/>
|
---|
15 | (where svnant.jar lies in the "project.classpath")
|
---|
16 |
|
---|
17 | To provide access to the Subversion API, svnant uses svnClientAdapter on top of
|
---|
18 | either the JavaHL native Subversion Java (JNI) bindings or Subverion's
|
---|
19 | command line programs (which must be installed and in your PATH).
|
---|
20 | See the subclipse's FAQ <http://subclipse.tigris.org/faq.html#get-javahl">
|
---|
21 | for info how to get JavaHL for your operating system.
|
---|
22 |
|
---|
23 | Documentation
|
---|
24 | =============
|
---|
25 | Documentation of the <svn> task is in the /doc directory.
|
---|
26 |
|
---|
27 | Play around
|
---|
28 | ===========
|
---|
29 | To access the sources, just type "ant" in the directory containing the
|
---|
30 | build.xml bundled with the distribution. The default target will
|
---|
31 | retrieve the sources corresponding to the version you have. If you
|
---|
32 | want to get the latest sources, type "ant checkoutLatest".
|
---|
33 |
|
---|
34 | Once you have the sources, svnant unit tests can be invoked using the
|
---|
35 | top level build.xml by typing "ant runTests". These tests provide a
|
---|
36 | great set of examples of how to use svnant's Ant tasks and data types.
|
---|
37 |
|
---|
38 | Please send any usage questions to <mailto:[email protected]>.
|
---|