You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2005/10/14 02:50:01 UTC

svn commit: r320956 - /maven/components/trunk/maven-site/src/site/apt/ant-tasks.apt

Author: brett
Date: Thu Oct 13 17:49:57 2005
New Revision: 320956

URL: http://svn.apache.org/viewcvs?rev=320956&view=rev
Log:
more fixes on the ant task doco

Modified:
    maven/components/trunk/maven-site/src/site/apt/ant-tasks.apt

Modified: maven/components/trunk/maven-site/src/site/apt/ant-tasks.apt
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-site/src/site/apt/ant-tasks.apt?rev=320956&r1=320955&r2=320956&view=diff
==============================================================================
--- maven/components/trunk/maven-site/src/site/apt/ant-tasks.apt (original)
+++ maven/components/trunk/maven-site/src/site/apt/ant-tasks.apt Thu Oct 13 17:49:57 2005
@@ -96,15 +96,22 @@
 -----
 
   Another option you can use is <<<filesetId>>>, which will give you a fileset reference that can be used to copy
-  files into a particular location. For example, to populate <<<WEB-INF/lib>>> with your dependencies, and assuming
-  you passed <<<filesetId="dependeny.fileset">>> to the <<<dependencies>>> task, you could use the following:
+  files into a particular location. For example, to populate <<<WEB-INF/lib>>> with your dependencies
+  you could use the following:
 
 -----
+<dependencies filesetId="dependency.fileset" useScope="runtime">
+  ...
+</dependencies>
 <copy todir="${webapp.output}/WEB-INF/lib">
-  <fileset refid="depdendency.fileset" />
+  <fileset refid="dependency.fileset" />
   <mapper type="flatten" />
 </copy>
 -----
+
+  Note the <<<useScope>>> attribute in this call. This ensures that your web application only includes your compile
+  and runtime dependencies, excluding those that are only for testing or are expected to already be provided in
+  the servlet container.
 
   You can also specify a <<<scope>>> parameter on each dependency. This changes the behaviour of
   transitive dependencies and is useful for building different types of classpaths. To see how it affects