org.jboss.jandex
Class JarIndexer
java.lang.Object
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 |
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 indexindexer
- The indexer to usemodify
- If the original jar should be modifiedverbose
- If we should print what we are doing to standard out
- Throws:
IOException
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.