Uploaded image for project: 'Jandex'
  1. Jandex
  2. JANDEX-15

-m option does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 1.0.3.Final, 1.1.0.Alpha1
    • None

      Testing tag 1.1.0.Final

      jar -tf my-ejb-interceptors.jar
      META-INF/
      META-INF/MANIFEST.MF
      com/
      com/jboss/
      com/jboss/examples/
      com/jboss/examples/ejb3/
      com/jboss/examples/ejb3/interceptors/
      com/jboss/examples/ejb3/interceptors/AroundInvokeInterceptor.class
      com/jboss/examples/ejb3/interceptors/AroundTimeoutInterceptor.class

      java -jar jandex-1.1.0.Final.jar -m my-ejb-interceptors.jar
      Wrote META-INF/jandex.idx in 0.0440 seconds (2 classes, 2 annotations, 2 instances, 283 bytes)

      jar -tf my-ejb-interceptors.jar
      java.util.zip.ZipException: error in opening zip file
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:214)
      at java.util.zip.ZipFile.<init>(ZipFile.java:144)
      at java.util.zip.ZipFile.<init>(ZipFile.java:115)
      at sun.tools.jar.Main.list(Main.java:1004)
      at sun.tools.jar.Main.run(Main.java:245)
      at sun.tools.jar.Main.main(Main.java:1177)

      With 1.0.3 Final it seemed to just delete the jar

            jgreene@redhat.com Jason Greene
            rhn-support-bmaxwell Brad Maxwell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: