Each Svn4Ant series consists of three distribution packages: binaries, documents, and source. Every package has an associated hash value and a GPG-generated signature so you can verify its integrity. To authenticate a package with any PGP or GnuPG application, download our KEYS file and import it into your public keyring.
You should use the newest Svn4Ant v2 or v3 series if possible. For older releases or a full download inventory, visit the Svn4Ant SF.net files release archive. Typical contents of a package are described in the included readme-first file. Read the Svn4Ant Future Plans section to learn the differences between the v1, v2, and v3 series.
| v3 Series Packages | for Ant 1.8 + SVNKit 1.3.2 |
|---|---|
| Binaries | svn4ant_3.0.0_bin.zip (sig) |
| Binaries with Dependencies | svn4ant_3.0.0_bin_withdeps.zip (sig) |
| Documents | svn4ant_3.0.0_doc.zip |
| Sources | svn4ant_3.0.0_src.zip (sig) |
| Release Notes | Whats New, Licenses |
| v2 Series Packages | for Ant 1.7 + SVNKit 1.1.8 |
| Binaries | svn4ant_2.0.0_bin.zip (sha1) |
| Binaries with Dependencies | svn4ant_2.0.0_bin_withdeps.zip (sha1) |
| Documents | svn4ant_2.0.0_doc.zip (sha1) |
| Sources | svn4ant_2.0.0_src.zip (sha1) |
| Release Notes | Whats New, Licenses |
| v1 Series Packages | for Ant 1.6 + SVNKit 1.1.4 |
| Binaries | svn4ant_binaries_1-1-0.zip (md5) |
| Binaries with Dependencies | svn4ant_binaries_withdeps_1-1-0.zip (md5) |
| Documents | svn4ant_apidocs_1-1-0.zip (md5) |
| Sources | svn4ant_sources_1-1-0.zip (md5) |
Note that except for the JRE and Ant applications, all required third-party libraries are included as part of the “_withdeps” package for a particular series.
Svn4Ant’s installation is similar to any optional Ant package. The following instructions describe how to install and verify Svn4Ant v2 or v3 in your Ant runtime environment.
<SVN4ANT_DIR> to refer to the directory into which the Svn4Ant distribution was extracted or built.lib directory. You can also specify a classpath directly to the <taskdef> instruction you use to load Svn4Ant.Below are the steps you must follow to use Svn4Ant after you download and expand the Svn4Ant ‘_withdeps’ (with dependencies) distribution. If you downloaded the plain binary distribution (no dependencies), you must adjust the first step below to include your locations of the required third-party jar files.
Tip!
Define where you’ve installed Svn4Ant using Ant’s <path> components. In this snippet we assume ‘${root.d}’ is where you have installed the Svn4Ant distribution.
1: <dirname property="root.d" file="${basedir}"/> 2: <path id="jware.path"> 3: <fileset dir="${root.d}/dep"> 4: <include name="*/lib/*.jar"/> 5: </fileset> 6: <fileset dir="${root.d}/lib"> 7: <include name="jw-svn4ant.jar"/> 8: </fileset> 9: </path>
You will need to adjust lines 3, 4, and 5 if you’ve downloaded the Svn4Ant dependencies as separate packages. Update these lines to point to wherever those packages are installed.
Define the namespace prefix for the Svn4Ant client antlib as part of your main script’s root <project> XML element. By default, we use the “svn:” prefix to refer to Svn4Ant client components under the “jwaresoftware.svn4ant.client” namespace.
1: <project name="svn4ant:checkinstall" basedir="." default="about-svn4ant" 2: xmlns:svn="jwaresoftware.svn4ant.client">
Load the Svn4Ant client component antlib into your Ant scripts using the paths previously defined in step 1. Note that we specify the URI of our declared “svn” namespace using the <taskdef>’s uri parameter.
1: <taskdef uri="jwaresoftware.svn4ant.client" 2: resource="org/jwaresoftware/svn4ant/client/antlib.xml" 3: classpathref="jware.path"/>
Because Svn4Ant includes the full AntXtras/Foundation antlib, you can also load that package into your Ant scripts to get access to all of those components. We will load the AntXtras antlib before loading the Svn4Ant antlib then reuse the class loader that uses our custom class path.
1: <taskdef uri="jwaresoftware.antxtras" 2: resource="org/jwaresoftware/antxtras/install/antlib.xml" 3: classpathref="jware.path" 4: loaderref="jware.classloader"/> 5: 6: <taskdef uri="jwaresoftware.svn4ant.client" 7: resource="org/jwaresoftware/svn4ant/install/antlib.xml" 8: loaderref="jware.classloader"/>
Verify you can access Svn4Ant client components from your Ant script.
1: <target name="about-svn4ant"> 2: <svn:libcheck/> 3: <echo message=" SVNKit: ${svnkit.label}"/> 4: <echo message="Svn4Ant: ${svn4ant.label}"/> 5: </target>
If you’re also going to use the plain AntXtras components, verify that you can use those items as well as the Svn4Ant items from your Ant script. Assume we have updated step 2 to declare the “oja:” prefix to refer to AntXtras components under the “jwaresoftware.antxtras” namespace URI.
1: <target name="about-svn4ant"> 2: <oja:vendorinfo name="antxtras"/> 3: <echo message="AntXtras: ${antxtras.build.label}"/> 4: <svn:libcheck/> 5: <echo message=" SVNKit: ${svnkit.label}"/> 6: <echo message=" Svn4Ant: ${svn4ant.label}"/> 7: </target>
If you would like to compile the source distribution, Svn4Ant is dependent on a few other open-source offerings that you must download and install before trying to compile your own Svn4Ant binaries. These dependencies are listed below.
Main Dependencies:
For Programmer Tests:
As Maven2 POM: