Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.
aslakhellesoy edited this page Sep 13, 2010 · 12 revisions

Running Cuke4Duke with Ant is relatively easy. Since Cuke4Duke depends on several jar files with particular versions, we recommend you use Apache Ivy to manage these jar files.

Installing Ivy

The first you need to do is to install the Ivy jar file into Ant’s lib dir. Depending on your platform:

  • OS X: /usr/share/ant/lib
  • Windows: [where_you_unzipped_ant]\lib

Running with Ant

Once you have installed Ivy in your Ant installation you must set up three files:

  • ivy.xml
  • ivysettings.xml
  • build.xml

A minimal example of all of these files has been set up in Cuke4Duke’s Simple example. Here you will also see Cuke4Duke’s built-in<gem> and <cucumber> Ant tasks.

Compiling all the code and running Cucumber is done with a single command:

ant -Divy=true -Dgems=true

(The two Java system properties can be ommitted for subsequent runs as you don’t need to download jars and gems for each run).

This should place all needed jar files under lib and all needed ruby gems under lib/.jruby. You don’t have to install JRuby or any gems separately. We recommend you use a similar scripted approach for your own project. That way everybody on the team can get exactly the same Cucumber setup with a single command.

Clone this wiki locally