JBoss.orgCommunity Documentation
JBoss Tattletale integrates with Apache Ant such that you can generate the reports directly from your build environment.
First, you need to add tattletale.jar, tattletale-ant.jar and javassist.jar to the Apache Ant classpath.
Second, you need to add the following to your project definition tag:
xmlns:tattletale="antlib:org.jboss.tattletale.ant"
That is it.
Alternative, you can do a taskdef
for each task
<taskdef name="report" classname="org.jboss.tattletale.ant.ReportTask" classpathref="tattletale.lib.path.id"/>
See the Apache Ant documentation for additional instructions on installation.
Usage:
<tattletale:report source="${src.dir]" destination="${dest.dir}"/>
Table 4.1. Apache Ant: report
Key | Value |
---|---|
source |
The directory that contains the Java archives. Multiple directories can be
scanned by separating each with the File.pathSeparator character - f.ex.
dir1:dir2 on Un*x.
Default: Current directory |
destination |
The directory where the reports should be generated
Default: Current directory |
configuration |
Path to the configuration file
Default: No value |
filter |
Path to the filter file
Default: No value |
reports |
A comma separated list of which reports that should be generated.
All reports can be selected by specifying "*". The following reports are supported:
Default: All reports |
classloader |
Specifies which classloader structure that should be used when scanning the archives.
Can be one of the following:
Default: |
profiles |
Specifies a comma separated list of profiles to resolve against. All profiles can
be selected by specifying "*". The following profiles are supported:
Default: |
excludes |
A comma separated list of directories or files that should be excluded from the scan. F.ex.
Default: Empty list |
blacklisted |
A comma separated list of black listed classes or packages. F.ex.
com.mycompany.forinternaluseonly, com.partner.forinternaluseonly
Default: Empty list |
failOnInfo |
Fail the build if a failed INFO report is found
Default: |
failOnWarn |
Fail the build if a failed WARN report is found
Default: |
failOnError |
Fail the build if a failed ERROR report is found
Default: |
deleteOutputDirectory |
Should the output directory be deleted
Default: |
scan |
A comma separated list of file extensions that should be scanned
Default: |
Copyright © 2011 Red Hat Middleware