Jar File Index? How do I instruct the jar file task to create an index for my jar file?

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 -i
command 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>
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact