Jar File Index? How do I instruct the jar file task to create an index for my jar file?
Created May 7, 2012
Erik Hatcher Ant's <jar> task (Ant 1.4.1 and earlier, see comments for update) does not support the creation of INDEX.LIST, but it can be done by executing the
jar -icommand from Ant after creating the JAR like this:
<target name="jar" depends="compile"> <jar jarfile="test.jar" basedir="${build}"/> <exec executable="jar"> <arg line="-i test.jar"/> </exec> </target>