Java Annotation Indexer 1.0.0.Final-redhat-1

org.jboss.jandex
Class JarIndexer

java.lang.Object
  extended by org.jboss.jandex.JarIndexer

public class JarIndexer
extends Object

Class which contains utility methods to create an index for a jar file

Author:
Stuart Douglas

Method Summary
static org.jboss.jandex.Result createJarIndex(File jarFile, Indexer indexer, boolean modify, boolean newJar, boolean verbose)
          Indexes a jar file and saves the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createJarIndex

public static org.jboss.jandex.Result createJarIndex(File jarFile,
                                                     Indexer indexer,
                                                     boolean modify,
                                                     boolean newJar,
                                                     boolean verbose)
                                              throws IOException
Indexes a jar file and saves the result. If the modify flag is try it is saved META-INF/jandex.idx. Otherwies an external file is created with a similar name to the original file, however the .jar extension is replaced with -jar.idx

Parameters:
jarFile - The file to index
indexer - The indexer to use
modify - If the original jar should be modified
verbose - If we should print what we are doing to standard out
Throws:
IOException

Java Annotation Indexer 1.0.0.Final-redhat-1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.