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

FileNotFoundException when the $PWD contains the string .jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.4.Final
    • 1.0.3.Final, 1.1.0.Final
    • None

      It seems to have a thing for .jar, it looks like it is replacing .jar anywhere in the absolute current working directory with -jar which then shoots itself in the foot and causes FileNotFound

      pwd && java -jar jandex-1.1.0.Final.jar -v my-ejb-interceptors.jar

      /home/bmaxwell/work/source/git/jandex/target/bmaxwell-jandex-tests/test/test.jar

      java.io.FileNotFoundException: /home/bmaxwell/work/source/git/jandex/target/bmaxwell-jandex-tests/test/test-jar/my-ejb-interceptors-jar.idx (No such file or directory)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
      at org.jboss.jandex.JarIndexer.createJarIndex(JarIndexer.java:102)
      at org.jboss.jandex.JarIndexer.createJarIndex(JarIndexer.java:66)
      at org.jboss.jandex.Main.execute(Main.java:69)
      at org.jboss.jandex.Main.main(Main.java:52)

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

              Created:
              Updated:
              Resolved: