Ant Tasks

JBehave supports accessing the Embedder functionality via Ant tasks:

Ant tasks support the following properties:

An example of a typical Ant task usage is:

Remember to include jbehave-ant to your runtime classpath.

The default scope is compile, which means that the stories will be looked up in the source directory (which defaults to src/main/java by can be overridden). If the scope is set to test the stories will be looked up in the test source directory (which defaults to src/test/java but can be overridden).