Depot Version
Home
Ant Tasks
Tools
API
Integration
 Apache Incubator > Depot > Version 

Depot Version Ant Tasks - Overview

Intro

Not interested in reading anything you don't have to, but want to be able to run this and know what is what? This is the place for you...

Note
Even less to read in the cut-n-paste section

Basically, you need to define the ant tasks to ant (ensuring the Apache Depot Version JAR is in your path) and then call those tasks, providing your configuration. Apache Ant tasks are both simple, and flexible, with a lot of choices. That said, hopefully the most used/useful are the simplest/easiest.

Register the tasks

Entering this into your ant script (prior to calling any of the version tasks) to register them with Ant.

<taskdef resource="depot-version-antlib.xml"/>

Call the tasks

Call the appropriate task or tasks

<version-stamp dest="${project.src}" versionId="personal.my.stuff" version="1.2"/>

Note
See cut-n-paste section for examples.

Run...

Run ant. The tasks will report their activity, and attempt to throw meaningful exceptions if you have invalid or insufficient parameters/nested elements.

by Adam R. B. Jack