Author: dfabulich
Date: Thu May 1 23:11:19 2008
New Revision: 652774
URL: http://svn.apache.org/viewvc?rev=652774&view=rev
Log:
[SUREFIRE-473] Documentation for additionalClassPath feature
Submitted by: Pascal Lambert
Added:
maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/additional-classpath.apt
Modified:
maven/surefire/trunk/maven-surefire-plugin/src/site/apt/index.apt
maven/surefire/trunk/maven-surefire-plugin/src/site/site.xml
Added:
maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/additional-classpath.apt
URL:
http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/additional-classpath.apt?rev=652774&view=auto
==============================================================================
---
maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/additional-classpath.apt
(added)
+++
maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/additional-classpath.apt
Thu May 1 23:11:19 2008
@@ -0,0 +1,36 @@
+ ------
+ Additional Classpath
+ ------
+ Pascal Lambert
+ ------
+ March 2008
+ ------
+
+Additional Classpath Elements
+
+ If you need to put more stuff in your classpath when Surefire executes (e.g
some funky resources or a container special jar),
+ we normally recommend you add it to your classpath as a dependency.
Consider deploying shared jars to a private remote repository for your
+ organization.
+
+ But, if you must, you can use the <<<additionalClasspathElements>>> element
to add custom resources/jars to your classpath.
+
++---+
+<project>
+ [...]
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <additionalClasspathElements>
+
<additionalClasspathElement>path/to/additional/resources</additionalClasspathElement>
+
<additionalClasspathElement>path/to/additional/jar</additionalClasspathElement>
+ </additionalClasspathElements>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ [...]
+</project>
++---+
\ No newline at end of file
Modified: maven/surefire/trunk/maven-surefire-plugin/src/site/apt/index.apt
URL:
http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-plugin/src/site/apt/index.apt?rev=652774&r1=652773&r2=652774&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-plugin/src/site/apt/index.apt (original)
+++ maven/surefire/trunk/maven-surefire-plugin/src/site/apt/index.apt Thu May
1 23:11:19 2008
@@ -39,6 +39,8 @@
The following examples show how to use the Surefire Plugin in more advanced
use-cases:
+ * {{{examples/testng.html}Using TestNG}}
+
* {{{examples/skipping-test.html}Skipping Tests}}
* {{{examples/inclusion-exclusion.html}Inclusions and Exclusions of Tests}}
@@ -47,12 +49,10 @@
* {{{examples/class-loading.html}Class Loading Issues}}
- * {{{examples/forking.html}Forking}}
-
* {{{examples/debugging.html}Debugging Tests}}
* {{{examples/system-properties.html}Using System Properties}}
-
- * {{{examples/testng.html}Using TestNG}}
-
+
+ * {{{examples/additional-classpath.html}Additional Classpath Elements}}
+
[]
Modified: maven/surefire/trunk/maven-surefire-plugin/src/site/site.xml
URL:
http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-plugin/src/site/site.xml?rev=652774&r1=652773&r2=652774&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-plugin/src/site/site.xml (original)
+++ maven/surefire/trunk/maven-surefire-plugin/src/site/site.xml Thu May 1
23:11:19 2008
@@ -28,13 +28,14 @@
<item name="FAQ" href="faq.html"/>
</menu>
<menu name="Examples">
+ <item name="Using TestNG" href="examples/testng.html"/>
<item name="Skipping Tests" href="examples/skipping-test.html"/>
<item name="Inclusions and Exclusions of Tests"
href="examples/inclusion-exclusion.html"/>
<item name="Running a Single Test" href="examples/single-test.html"/>
<item name="Class Loading Issues" href="examples/class-loading.html"/>
<item name="Debugging Tests" href="examples/debugging.html"/>
- <item name="Using System Properties"
href="examples/system-properties.html"/>
- <item name="Using TestNG" href="examples/testng.html"/>
+ <item name="System Properties" href="examples/system-properties.html"/>
+ <item name="Additional Classpath Elements"
href="examples/additional-classpath.html"/>
</menu>
</body>
</project>