ClassloaderReport

Description

This task writes a classloader report for debugging purposes into the log or a file.

NOTE: The report format is subject to change in future releases.

See also: Classloader Task

Parameters

Attribute Description Required
destfile If specified, the value indicates the name of the file to send the output of the statement to. If not specified, then the output will go to the Ant log. No.
format Outputformat. One of "xml" (for XML format) or "txt" (for plain text format). No, defaults to "txt" if destfile is empty and "xml" if destfile is set.
hierarchy Representation of delegation hierarchy. One of "flat" (for flatten representation) or "tree" (for tree representation). No, defaults to "flat" if format is "txt" and "tree" if destfile is "xml".
reportpackages If "true", report the defined packages as get from ClassLoader.getPackages(). No, defaults to "true".
handlerSet Id of the LoaderhandlerSet to use when getting information about a classloader. See "Supporting custom classloaders" for further information. No, defaults to a generic LoaderhandlerSet containing the predefined Loaderhandlers.
failonerror Stop the build process if an error occurs. No, defaults to "false".

Parameters specified as nested elements

<handlerSet>

See Supporting custom classloaders.

Examples

<classloaderreport/>
Writes a Classloaderreport for debugging purposes to the log.

<classloaderreport outfile="classloaderreport.xml" />
Writes a Classloaderreport for debugging purposes to the file ${basedir}/classloaderreport.xml.


© Copyright 2005 The Apache Software Foundation. All rights Reserved.