- Revision
- 1445
- Author
- mauro
- Date
- 2009-12-21 17:26:32 -0600 (Mon, 21 Dec 2009)
Log Message
Clarified scope parameter in Ant and Maven runners.
Modified Paths
Diff
Modified: trunk/core/distribution/src/site/content/running-scenarios.html (1444 => 1445)
--- trunk/core/distribution/src/site/content/running-scenarios.html 2009-12-21 22:56:28 UTC (rev 1444) +++ trunk/core/distribution/src/site/content/running-scenarios.html 2009-12-21 23:26:32 UTC (rev 1445) @@ -30,11 +30,21 @@ <scenarioRunner scenarioIncludes="**/scenarios/*.java" scenarioExcludes="**/*Steps.java" classLoaderInjected="[true|false]" skip="[true|false]" ignoreFailure="[true|false]" - scope="[compile|test]" /> + scope="[compile|test]" + sourceDirectory="[sourceDirectory|src/main/java]" + testSourceDirectory="[testSourceDirectory|src/test/java]" /> </pre> + <p>Remember to include <b>jbehave-ant</b> to your runtime classpath.</p> +<p>Note: we are using as default scope <b>compile</b>, which means +that the scenarios will be looked up in the source directory (which can +be optionally specified and defaults to <b>src/main/java</b>). If the +scope is set to <b>test</b> the scenarios will be looked up in the test +source directory (which can be optionally specified and defaults to <b>src/test/java</b>). +</p> + <h2>Running as Maven Plugin</h2> <pre class="brush: xml"> @@ -66,6 +76,11 @@ </plugin> </pre> +<p>Note: we are using as default scope <b>compile</b>, which means +that the scenarios will be looked up in the POM source directory. If the +scope is set to <b>test</b> the scenarios will be looked up in the POM +test source directory.</p> + <h2>Instantiating Scenario classes</h2> <p>Both Ant and Maven by default instantiate the Scenario class via
To unsubscribe from this list please visit:
