Chapter 25. Using Luntbuild ANT Task

Table of Contents

Declaring the task
Using the deploy task
Using the deploy task in a macro

Luntbuild comes with an ANT task to automate aspects of the artifact promotion process. To use the task, you need the following jars in the ANT classpath

  1. hessian-3.0.8.jar

  2. luntbuild-api.jar

  3. jsch-0.1.34.jar

  4. luntanttask.jar

Hessian and Luntbuild API jars can be found in the "remoting" directory. Jsch is available here, or also in the "remoting" directory.

Currently, LuntDeployTask only supports deploying artifacts from the latest green (successful) build.

Declaring the task

Use the taskdef declaration to declare the Lunt task.

    
    <taskdef name="deploy" classname="net.mccg.lunt.LuntDeployTask"/>