@@ -40,9 +40,22 @@ Apache Ivy can be used to automatically provision the required dependencies.
4040This approach helps ensure consistent versions across multiple environments
4141and simplifies setup.
4242
43- Below is an example `build.xml` configuration using Apache Ivy.
43+ ### 1. `ivy.xml` (Dependency Declarations)
44+
45+ Create an `ivy.xml` file in your project directory with:
46+
47+ ```xml
48+ <ivy-module version="2.0">
49+ <info organisation="example" module="dependency-check-ant-example"/>
50+ <dependencies>
51+ <dependency org="org.owasp" name="dependency-check-ant" rev="${project.version}"/>
52+ </dependencies>
53+ </ivy-module>
54+ ```
55+ > Replace `${project.version}` with your desired Dependency-Check version, such as `8.4.0`.
56+
57+ ### 2. `build.xml` (Ant/Ivy Integration)
4458
45- #[[
4659```xml
4760<project name="dependency-check-ivy" default="check"
4861 xmlns:ivy="antlib:org.apache.ivy.ant">
@@ -55,8 +68,7 @@ Below is an example `build.xml` configuration using Apache Ivy.
5568 <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]"/>
5669
5770 <!-- Register Dependency-Check Ant task -->
58- <taskdef
59- resource="dependency-check-taskdefs.properties">
71+ <taskdef resource="dependency-check-taskdefs.properties">
6072 <classpath>
6173 <fileset dir="lib">
6274 <include name="*.jar"/>
@@ -67,10 +79,16 @@ Below is an example `build.xml` configuration using Apache Ivy.
6779 <target name="check">
6880 <dependency-check
6981 projectName="Example Project"
70- scanSet="src"
71- format="HTML"/>
82+ reportFormat="HTML">
83+ <fileset dir="src">
84+ <include name="**/*.jar"/>
85+ </fileset>
86+ </dependency-check>
7287 </target>
7388</project>
89+ ```
90+
91+ Both `build.xml` and `ivy.xml` must be located in the same directory, unless Ivy is configured otherwise.
7492
7593It is important to understand that the first time this task is executed it may
7694take 10 minutes or more as it downloads and processes the data from the National
0 commit comments