- Documentation (2.5.0-rc1)
- Release Notes
- Tutorials
- Reference
- Introduction
- Settings Files
- Ivy Files
- Ant Tasks
- artifactproperty
- artifactreport
- buildlist
- buildnumber
- buildobr
- cachefileset
- cachepath
- checkdepsupdate
- cleancache
- configure
- convertmanifest
- convertpom
- deliver
- dependencytree
- findrevision
- fixdeps
- info
- install
- listmodules
- makepom
- post resolve tasks
- publish
- report
- repreport
- resolve
- resources
- retrieve
- settings
- var
- Using standalone
- OSGi
- Developer doc
report
Generates reports of dependency resolving. One report per configuration is generated, but all reports generated together are hyperlinked one to each other.
This task should be used only after a call to resolve, even if the call was not done during the same Ant build. In fact, this task uses XML report generated by resolve in cache. So if you call resolve on a module for a given configuration, you can call report safely on this module and this configuration as long as you do not clean your Ivy cache.
If you want to have an idea of what reports look like, check this very simple example. The task also generates a GraphML file which can be loaded with the free yEd graph editor. Then following a few simple steps you can obtain a graph like this one.
(since 1.4) If a custom XSLT is specified, it’s possible to specify additional parameters to the stylesheet.
Attributes
Attribute | Description | Required |
---|---|---|
todir |
the directory to which reports should be generated |
No, defaults to |
outputpattern |
the generated report names pattern |
No, defaults to |
xsl |
|
No, defaults to |
xml |
|
No, defaults to |
graph |
|
No, defaults to |
dot |
|
No, defaults to |
conf |
a comma separated list of the configurations for which a report should be generated |
No. Defaults to the configurations resolved by the last resolve call (during same Ant build), or |
organisation |
the name of the organisation of the module for which report should be generated |
No, unless resolveId has not been specified and no resolve was called during the build. Defaults to last resolved module organisation. |
module |
the name of the module for which report should be generated |
No, unless resolveId has not been specified and no resolve was called during the build. Defaults to last resolved module. |
validate |
true to force Ivy files validation against ivy.xsd, false to force no validation |
No. Defaults to default Ivy value (as configured in settings) |
xslfile |
indicates which xsl file should be used to generate the report |
No, defaults to Ivy provided xsl which generates html report |
settingsRef |
A reference to Ivy settings that must be used by this task (since 2.0) |
No, defaults to |
resolveId |
The id which was used for a previous resolve (since 2.0) |
No, defaults to |
Examples
To generate a HTML and GraphML report:
<report conf="compile"/>
To generate a HTML report only:
<report conf="compile" graph="false"/>
To generate an XML report using a custom stylesheet:
<report conf="compile" xslfile="my-custom-stylesheet.xsl" xslext="xml"/>
To generate an XML report using a custom stylesheet which needs some parameters:
<report conf="compile" xslfile="my-custom-stylesheet.xsl" xslext="xml">
<param name="param1" expression="value1"/>
<param name="param2" expression="value2"/>
</report>