Author: pgier Date: Fri May 8 20:25:00 2009 New Revision: 773084 URL: http://svn.apache.org/viewvc?rev=773084&view=rev Log: Improve documentation about type filtering the dependencies task.
Modified: maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/examples/dependencies.apt maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/reference.apt Modified: maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/examples/dependencies.apt URL: http://svn.apache.org/viewvc/maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/examples/dependencies.apt?rev=773084&r1=773083&r2=773084&view=diff ============================================================================== --- maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/examples/dependencies.apt (original) +++ maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/examples/dependencies.apt Fri May 8 20:25:00 2009 @@ -167,5 +167,17 @@ <pom file="mypom.xml"/> </artifact:dependencies> ----- - + +Filtering Dependencies by Type + + Dependencies can be filterd by type by using the <<<type>>> attribute. This can be set to a string + containing the desired type. The following example will only include artifacts of the jar type. + +----- + <artifact:dependencies filesetId="deps.fileset" type="jar"> + <pom file="mypom.xml"/> + </artifact:dependencies> +----- + + By default all artifact types will be included when building the list of dependencies. Modified: maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/reference.apt URL: http://svn.apache.org/viewvc/maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/reference.apt?rev=773084&r1=773083&r2=773084&view=diff ============================================================================== --- maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/reference.apt (original) +++ maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/reference.apt Fri May 8 20:25:00 2009 @@ -54,7 +54,7 @@ *-------------------------+---------------------------------------------------------------------------+--------------+-------------+ | <<<sourcesFilesetId>>> | The reference ID to store a fileset under, for the sources attachements of the resolved dependencies. | No | 2.0.6 | *-------------------------+---------------------------------------------------------------------------+--------------+-------------+ -| <<<type>>> | The type of artifacts to be retrieved. The default is <<<jar>>>. | No | | +| <<<type>>> | The type of artifacts to be retrieved. By default all artifact types will be included. | No | | *-------------------------+---------------------------------------------------------------------------+--------------+-------------+ | <<<useScope>>> | Follows the maven scope behaviour. Can be set to <<<compile>>>, <<<runtime>>>, or <<<test>>>. If no value is provided, all scopes will be included. | No | | *-------------------------+---------------------------------------------------------------------------+--------------+-------------+