The AttributeIndexer Ant Task

The AttributeIndexer tool creates a list of classes that the o.a.c.a.AttributeIndex class should consider for inclusion in its index. The tool is run on a JAR file and will create a file named attrs.index in the META-INF folder. The process is:

+------------+
|.class Files|
+------------+
      |       
   JAR Tool
      |       
      v
+-------------+
|  .JAR File  |
+-------------+
      |       
   Indexer
      |       
      v
+-------------+
|Jar w. index |
+-------------+

This is how the indexer is used:

<taskdef resource="org/apache/commons/attributes/anttasks.properties"/>
      
<attribute-indexer jarfile="myclasses.jar"/>
Parameter Required Description
jarfile Yes The jar file to create an index for.